[Angular] Clean up InfoGesture workaround

...and add comment pointing back to the Angular issue
which motivates the workaround.
This commit is contained in:
Victor Woeltjen 2015-09-08 21:14:46 -07:00
parent 560c8612bd
commit 52c471bd3a

View File

@ -111,7 +111,9 @@ define(
this.trackPosition(event);
// If we're already going to sho
// Do nothing if we're already scheduled to show a bubble.
// This may happen due to redundant event firings caused
// by https://github.com/angular/angular.js/issues/12795
if (this.pendingBubble) {
return;
}
@ -121,8 +123,7 @@ define(
// Show the bubble, after a suitable delay (if mouse has
// left before this time is up, this will be canceled.)
this.pendingBubble = this.pendingBubble ||
this.$timeout(displayBubble, this.delay);
this.pendingBubble = this.$timeout(displayBubble, this.delay);
this.element.on('mouseleave', this.hideBubbleCallback);
};