Saturday, December 31, 2016

Re: JsInterop JSON.parse()ed object differs from JSNI JSON.parse()ed object

The 3rd party code was being called implicitly when I fired the message on the event bus.

On Saturday, December 31, 2016 at 1:37:29 PM UTC+1, Vassilis Virvilis wrote:
So why it did it in the one case but not in the other? Were you calling the third party js explicitly in the one case?

On Sat, Dec 31, 2016 at 1:04 PM, Dave Puchyr <da...@avaritia.com> wrote:
After stepping through the compiled js I found that a third party (obfuscated) js library manipulated the timestamps on me.  JsInterop is fine. :)  Sorry for the noise.


On Saturday, December 31, 2016 at 11:20:43 AM UTC+1, Dave Puchyr wrote:
Even when I reduce the json input to

{"Contract":"STK:USD:PBA@NYSE","action":"onHistoricalData","bar":"D","bars":[{"time":1451952000},{"time":1452038400},{"time":1452124800}],"callback":4,"metadata":{"noData":false},"t":1483179318,"t0":1452075258,"ticker":"STK:USD:PBA@NYSE"}

the time properties are still 1607400000 in the JsInterop parsed object. Thanks for the suggestion, though.

On Saturday, December 31, 2016 at 8:40:58 AM UTC+1, Paul Robinson wrote:
Have you tried modifying/simplifying the JSON to see what your odd behaviour is sensitive to?

Paul 

--
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-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

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