Browse files

Merge branch 'master' into gh-pages

  • Loading branch information...
2 parents 851928c + e32e44b commit d833e92d5be33be07aca8416018f84ceee5a66d1 @qiao committed Apr 22, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 visual/grid.js
View
9 visual/grid.js
@@ -334,14 +334,11 @@ window.GridView = {
showFailure: function() {
var i, node,
- fill = this.failedNodeAttr.fill,
- startX = GridModel.getStartX(),
- startY = GridModel.getStartY();
+ fill = this.failedNodeAttr.fill;
for (i = 0; node = this.changedNodes[i]; ++i) {
- if (GridModel.isWalkableAt(node.x, node.y) &&
- !(node.x === startX && node.y === startY)) {
- this.colorizeNodeAt(node.x, node.y, fill);
+ if (GridModel.isWalkableAt(node.x, node.y)) {
+ this.colorizeNodeAt(node.x, node.y, fill);
}
}
},

0 comments on commit d833e92

Please sign in to comment.