--- joe ertaba <[EMAIL PROTECTED]> wrote:
> in
> 
> MyComponent.prototype = {
> ...
> MyVar:'hello',
> ....
> }
> 
> how can access it from my extension
> i want to write/read it as a global variable

Use the wrappedJS trick (search MDC for info). You'll be able to do this from 
your extension:

var myService = 
Component.classes["@joeertaba.org/myext/service;1"].getService().wrappedJSObject;
myService.hello = "world!";

_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to