Bobby Holley wrote:
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.
Sure, but the old category only installed the object on demand, so this
is a backward step...
--
Warning: May contain traces of nuts.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform