diff --git a/lib/widgets/element.js b/lib/widgets/element.js index ca9d267..6fdedbe 100644 --- a/lib/widgets/element.js +++ b/lib/widgets/element.js @@ -993,9 +993,9 @@ Element.prototype.setLabel = function(options) { Element.prototype.removeLabel = function() { if (!this._label) return; - this._label.detach(); this.removeListener('scroll', this._labelScroll); this.removeListener('resize', this._labelResize); + this._label.detach(); delete this._labelScroll; delete this._labelResize; delete this._label;