Thursday, June 2, 2016

Re: JsInterop and default settings in JS structures - how to handle?


Do I have to provide defaults for callbacks and other properties?  

No, the JS library provides the defaults as you have shown in the short JS code snippet.

 
What happens if I leave the properties uninitialized? What will the JS API see with such partially supplied options - undefined or null? 

I would assume uninitialized properties are undefined.


-- J.

 

--
You received this message because you are subscribed to the Google Groups "GWT Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment