Labs/Jetpack/Binary Components: Difference between revisions

Jump to navigation Jump to search
added link to sample code
(added link to sample code)
Line 11: Line 11:


This will give you the <code>nsJetpack</code> native JavaScript object, which provides access to all the component's functionality.
This will give you the <code>nsJetpack</code> native JavaScript object, which provides access to all the component's functionality.
== Sample Code ==
Sample code for <code>nsJetpack</code> can be found in [http://hg.mozilla.org/labs/jetpack/file/tip/extension/content/js/tests/test-nsjetpack.js test-nsjetpack.js].


== Flexible Membrane Functionality ==
== Flexible Membrane Functionality ==
Line 22: Line 26:
=== Security Concerns ===
=== Security Concerns ===


Note that the Flexible Membrane functionality is intended primarily for prototyping purposes; its use is discouraged for production code for two reasons:
Note that the Flexible Membrane functionality is intended primarily for prototyping purposes; its use is discouraged in production code for two reasons:


# The membrane methods have a tendency to get called very frequently, and as a result, implementing them in JavaScript is likely to not be efficient.
# The membrane methods have a tendency to get called very frequently, and as a result, implementing them in JavaScript is likely to not be efficient.
93

edits

Navigation menu