[Project_owners] Global Variable
Nickolay Ponomarev
asqueella at gmail.com
Wed Nov 21 11:26:50 PST 2007
On Nov 21, 2007 7:03 PM, joe ertaba <belaviyo at gmail.com> wrote:
> function MyComponent() {
> // you can do |this.wrappedJSObject = this;| for the first version of the
> component
> // (in case you don't want to write IDL yet.)
You claim to have read
http://developer.mozilla.org/en/docs/wrappedJSObject#Meet_wrappedJSObject
and you still leave this comment as is?
You *must* write this.wrapepdJSObject=this in constructor for the
below code accessing wrappedJSObject "from the outside" to work:
> var myService =
> Components.classes["@mozilla.doslash.org/test/component;1"].getService();
> myService.wrappedJS.MyVar = "Some Strings";
>
Nickolay
More information about the Project_owners
mailing list