From 39949a73a797662250df814387d2f972597aea15 Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Fri, 15 Apr 2016 22:00:36 -0400 Subject: [PATCH] Bug 1263887 - Update while it was open, so + // we'll poke a DeferredTask to update the parent sometime + // in the very near future. + this._updateTimer.arm(); + }); + this.mut.observe(this.element, {childList: true, subtree: true}); }, uninit: function() { @@ -48,6 +59,9 @@ this.SelectContentHelper.prototype = { this.global.removeEventListener("mozhidedropdown", this); this.element = null; this.global = null; + this.mut.disconnect(); + this._updateTimer.disarm(); + this._updateTimer = null; }, showDropDown: function() { @@ -69,6 +83,15 @@ this.SelectContentHelper.prototype = { return buildOptionListForChildren(this.element); }, + _update() { + // The