Improve getIntersection performance

This commit is contained in:
kzhdev
2014-01-31 11:40:08 -06:00
parent 774f50007c
commit 3ac8ee5919

View File

@@ -52,7 +52,7 @@
getIntersection: function(pos) {
var obj, i, intersectionOffset, shape;
if(this.isVisible()) {
if(this.hitGraphEnabled() && this.isVisible()) {
for (i=0; i<INTERSECTION_OFFSETS_LEN; i++) {
intersectionOffset = INTERSECTION_OFFSETS[i];
obj = this._getIntersection({