Closed IagoSRL closed 12 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
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