Open xabolcs opened 9 years ago
If you need to refactor some code to create some functions reusable by registerOverlay
and nay new toolbar button code, then I'm all for that. Right now registerOverlay
just loads the overlay URL, cleans the DOM by removing white space text nodes and then maps any elements with an id
into a map-like object.
While thinking and hacking with
CustomizableUI.jsm
from ExtSDK (#2), I wondered if there will be aloadNodesFromOverlay
function, or just amap
(generated byregisterOverlay
) containing all the nodes from the xul.This could simplify building UI objects (especially
toolbaritem
s) to adocument.importNode
.Of course all this could be go to a
utils.js
next tomain.js
but I think it is enough to read once theoverlay.xul
. So I'm ok if this got awontfix
. :)