On Tuesday, July 22, 2014 11:15:18 AM UTC+2, Jens wrote:
>
> No: TestObj.member1 is evaluated to a function and then called as a
>> constructor with the arguments:
>> http://www.ecma-international.org/ecma-262/5.1/#sec-11.2.2
>>
>
> I definitely have to read more about JS. Thanks for correcting
>
> No: TestObj.member1 is evaluated to a function and then called as a
> constructor with the arguments:
> http://www.ecma-international.org/ecma-262/5.1/#sec-11.2.2
>
I definitely have to read more about JS. Thanks for correcting.
Just noticed "this.x" in the JSNI method getAsJsObj(). Should
On Tuesday, July 22, 2014 10:25:50 AM UTC+2, Jens wrote:
>
>
>> *I got an answer that my function TestObj.member1 has to return 'this'.
>> I'm still new to JavaScript but I think a call of new
>> TestObj.member1 should return the object that is created?!*
>>
>
> You are calling the function "me
>
>
> *I got an answer that my function TestObj.member1 has to return 'this'.
> I'm still new to JavaScript but I think a call of new
> TestObj.member1 should return the object that is created?!*
>
You are calling the function "member1" on a newly created TestObj. So
"return new TestObj.member