From 3962b2bfc7d47defca020e1a0e8590b70c55c162 Mon Sep 17 00:00:00 2001 From: Surma Date: Mon, 6 Jul 2015 22:40:43 +0100 Subject: [PATCH] Unregister cleanup handlers (fixes #761) --- src/menu/menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/menu/menu.js b/src/menu/menu.js index 00743dbb5..43d14fe44 100644 --- a/src/menu/menu.js +++ b/src/menu/menu.js @@ -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);