Skip to content

Commit

Permalink
Only try to decrement gesture dependency counter if dependency exists
Browse files Browse the repository at this point in the history
Fixes #2397
  • Loading branch information
dfreedm committed Sep 2, 2015
1 parent d3a7c93 commit 8886e8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/standard/gestures.html
Expand Up @@ -334,9 +334,9 @@
if (gd && gd[name]) {
gd[name] = (gd[name] || 1) - 1;
gd._count = (gd._count || 1) - 1;
}
if (gd._count === 0) {
node.removeEventListener(dep, this.handleNative);
if (gd._count === 0) {
node.removeEventListener(dep, this.handleNative);
}
}
}
}
Expand Down

0 comments on commit 8886e8c

Please sign in to comment.