gecko/toolkit/devtools/server/tests/unit/registertestactors-01.js
Dave Camp 23913ae271 Bug 877295 - Allow actors to be loaded as CommonJS modules. r=past
--HG--
extra : rebase_source : c9f1f7da216e006ab1983127f9aa61da25f7da92
2013-06-06 16:06:08 -07:00

16 lines
382 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
function Actor() {}
exports.register = function(handle) {
handle.addTabActor(Actor, "registeredActor1");
handle.addGlobalActor(Actor, "registeredActor1");
}
exports.unregister = function(handle) {
handle.removeTabActor(Actor);
handle.removeGlobalActor(Actor);
}