On Nov 21, 2007 7:03 PM, joe ertaba <[EMAIL PROTECTED]> 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
_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners