Changes

Jump to: navigation, search

Labs/Jetpack/JEP/25

481 bytes added, 18:03, 15 September 2009
added jetpack example
This code doesn't necessarily work; it's just aspirational.
 
=== Jetpack ===
 
Using Chrome Boosters from a Jetpack Feature is just like using them in any CommonJS-supported environment; the Jetpack runtime takes care of initializing the Chrome Booster framework when a Jetpack Feature is loaded, providing all necessary global functions to the Feature's global scope, and unloading the Chrome Boosters when the Feature is unloaded.
 
<pre class="brush:js;">
var foo = require('foo');
 
jetpack.notifications.show("Hello " + foo.bar());
</pre>
=== XULRunner extension, in a chrome-privileged page/window ===
874
edits

Navigation menu