manolo / gwt-api-generator

Generator for creating GWT JSInterop clients from Polymer Web Components
Apache License 2.0
50 stars 24 forks source link

Polymer clears the value of window.performance #71

Closed attilapuskas closed 7 years ago

attilapuskas commented 7 years ago

In the Polymer class the performance field has been introduced: here which makes the previously not null performance undefined. This causes an exception for example in iron-list.html where the window.performance.now() is called without checking whether the performance has a value or not.

frami commented 7 years ago

We have the same problem. We always have to comment out this part of the Polymer class.

cpboyd commented 7 years ago

When compiling, I get a possibly related warning:

[INFO] [WARN] Exporting effectively non-final field com.vaadin.polymer.Polymer.performance. Due to the way exporting works, the value of the exported field will not be reflected across Java/JavaScript border.

manolo commented 7 years ago

Seems introduced by mistake