diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index f0629bea..fb7c1c26 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -1215,7 +1215,7 @@ catch(e) { document.removeEventListener(this.kEVENT_TYPE_TABBAR_STATE_CHANGED, this, false); document.removeEventListener(this.kEVENT_TYPE_FOCUS_NEXT_TAB, this, false); - this._tabFocusAllowance.each(function(aListener) { + this._tabFocusAllowance.forEach(function(aListener) { window.removeEventListener(this.kEVENT_TYPE_FOCUS_NEXT_TAB, aListener, false); }, this);