IagoSRL / TBX-Unified-Search

Thunderbird extension that unify the features of global search box and quick filter box in an unique widget.
https://addons.mozilla.org/es-ES/thunderbird/addon/unified-search-187593/
6 stars 3 forks source link

Warning at AMO upload: DOM Mutation Events Prohibited #6

Closed IagoSRL closed 12 years ago

IagoSRL commented 13 years ago

When uploading files into AMO, the only next warning is showed (from version 0.6.0):

DOM Mutation Events Prohibited

Advertencia: DOM mutation events are flagged because of their deprecated status, as well as their extreme inefficiency. Consider using a different event. chrome/content/unifiedsearch.js 968 969 970 else document.addEventListener("DOMNodeInserted", function(aEvent) { if (this.qfbar_isinitied || // If already was initied do nothing

IagoSRL commented 13 years ago

AMO reviewer Diego Casorran throught Kent James suggested me this:

When the "Customize Toolbar" window is closed, an "aftercustomization" event is issued, hence he can listen to that.

window.addEventListener("aftercustomization", function() { if(document.getElementById('gloda-search')) unifiedsearch.initGSBox(); if(document.getElementById('uswidget')) unifiedsearch.initUSWidget(); }, false);

https://developer.mozilla.org/en/XUL/Toolbars/Toolbar_customization_events