Changes

Jump to: navigation, search

Labs/Jetpack/JEP/25

32 bytes added, 01:10, 15 September 2009
m
added indentation to code sample
<script src="securable-module.js"></script>
<script>
// Create a loader for SecurableModules that gives them chrome // privileges by default and roots the filesystem at (our URL)/lib. var loader = SecurableModule.Loader({defaultPrincipal: "system", rootPath: "lib"});
// Load the 'foo' SecurableModule and call its exported doSomething() // function. loader.require('blarg').doSomething();
window.addEventListener( "unload", function() { // Send an unload signal to free any resources created by modules so // far. loader.require('unload').send(); }, false );
</script>
</html>
874
edits

Navigation menu