On Tue, Mar 18, 2014 at 6:53 AM, Neil <n...@parkwaycc.co.uk> wrote:

> Let's suppose that I want to provide a global property that provides 5
> functions each with a number of string arguments. (Traditionally this would
> be done using a component in the JavaScript global property category.) How
> would this way work? (Ideally the object backing the property would only be
> created on demand, and would have access to the window in question, but a
> singleton object that was available to all globals is acceptable.)


If you're shipping with the browser, use WebIDL. If not, watch for new
globals, and install the functions via exportFunction.

bholley
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to