fix typo of shouldDrawHit

This commit is contained in:
Лаврёнов Антон
2014-05-09 17:08:14 +08:00
parent 998402a775
commit f99975441e
2 changed files with 2 additions and 2 deletions

View File

@@ -346,7 +346,7 @@
}, },
shouldDrawHit: function(canvas) { shouldDrawHit: function(canvas) {
var layer = this.getLayer(); var layer = this.getLayer();
return ((canvas && canvas.isCache) || (layer && layer.hitGraphEnabled())) return (canvas && canvas.isCache) || (layer && layer.hitGraphEnabled())
&& this.isVisible() && !Kinetic.isDragging(); && this.isVisible() && !Kinetic.isDragging();
} }
}); });

View File

@@ -643,7 +643,7 @@
*/ */
shouldDrawHit: function(canvas) { shouldDrawHit: function(canvas) {
var layer = this.getLayer(); var layer = this.getLayer();
return ((canvas && canvas.isCache) || (layer && layer.hitGraphEnabled())) return (canvas && canvas.isCache) || (layer && layer.hitGraphEnabled())
&& this.isListening() && this.isVisible() && !Kinetic.isDragging(); && this.isListening() && this.isVisible() && !Kinetic.isDragging();
}, },
/** /**