From 9d1868e837cea0e53620d4356ca90858de427488 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() { @@ -45,9 +55,11 @@ this.SelectContentHelper.prototype = { this.global.removeMessageListener("Forms:MouseOver", this); this.global.removeMessageListener("Forms:MouseOut", this); this.global.removeEventListener("pagehide", this); - this.global.removeEventListener("mozhidedropdown", this); this.element = null; this.global = null; + this.mut.disconnect(); + this._updateTimer.disarm(); + this._updateTimer = null; }, showDropDown: function() { @@ -69,6 +81,15 @@ this.SelectContentHelper.prototype = { return buildOptionListForChildren(this.element); }, + _update() { + // The