Skip to content

Commit

Permalink
Unregister cleanup handlers (fixes #761)
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Jul 6, 2015
1 parent 24e6229 commit 3962b2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/menu/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,9 @@ MaterialMenu.prototype.applyClip_ = function(height, width) {
MaterialMenu.prototype.addAnimationEndListener_ = function() {
'use strict';

var cleanup = function() {
var cleanup = function () {
this.element_.removeEventListener('transitionend', cleanup);
this.element_.removeEventListener('webkitTransitionEnd', cleanup);
this.element_.classList.remove(this.CssClasses_.IS_ANIMATING);
}.bind(this);

Expand Down

0 comments on commit 3962b2b

Please sign in to comment.