Thursday, June 12, 2014

JSNI Javascript promises

Hi all,
I start to write a wrapper around a Javascript lib, where function calls are handled with promises, like get(bla).then(doThis,doThat).catch(stuff). If I try to wrap this function the gwt compiler "says" that I missed a name after . operator ... .catch(function...
After googling around I found out, that catch is a restricted keyword and I cannot use this inside the native block. Is it possible to escape the .catch(stuff) to get this work?

Thnx
Alex

--
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