"use strict";
const EXPORTED_SYMBOLS = ["core"];
const {classes: Cc, interfaces: Ci} = Components;
const core = {
init: function SpacerWidget_init(api) {
this._api = api;
}
,
finalize: function SpacerWidget_finalize() {
delete this._api;
}
,
buildWidget: function SpacerWidget_buildWidget(WIID, item) {
var parent = item.parentNode;
while (parent && ! ("insertItem" in parent)) parent = parent.parentNode;
if (parent)
parent.insertItem("spacer",item);
var me = this;
var timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
timer.initWithCallback({
notify: function () me._api && me._api.Controls.removeWidget(WIID)},0,timer.TYPE_ONE_SHOT);
}
,
destroyWidget: function SpacerWidget_destroyWidget(WIID, item, context) {

}
};
