Tuesday, July 22, 2014

Re: Trying to get an object with a number array out of a js script

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.member1(..)" returns what the function returns. As your function does not return anything currently, your code fails.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment