|
2 | 2 |
|
3 | 3 | import com.google.gwt.core.client.GWT; |
4 | 4 | import com.google.gwt.core.client.JavaScriptObject; |
5 | | -import elemental2.core.Array; |
| 5 | +import elemental2.core.JsArray; |
6 | 6 | import com.google.gwt.dom.client.Document; |
7 | 7 | import com.google.gwt.dom.client.Element; |
8 | 8 | import com.google.gwt.user.client.DOM; |
@@ -61,11 +61,11 @@ public interface DomApi { |
61 | 61 |
|
62 | 62 | <T extends HTMLElement> T querySelector(String selector); |
63 | 63 |
|
64 | | - Array querySelectorAll(String selector); |
| 64 | + JsArray querySelectorAll(String selector); |
65 | 65 |
|
66 | 66 | void appendChild(Object el); |
67 | 67 |
|
68 | | - Array children(); |
| 68 | + JsArray children(); |
69 | 69 | } |
70 | 70 |
|
71 | 71 | @JsType(isNative=true, namespace=GLOBAL) |
@@ -427,7 +427,7 @@ function done() { |
427 | 427 | function loadPolyfill() { |
428 | 428 | var s = $doc.createElement('script'); |
429 | 429 | s.src = @com.vaadin.polymer.Polymer::absoluteHref(*) |
430 | | - ('webcomponentsjs/webcomponents-lite.min.js'); |
| 430 | + ('webcomponentsjs/webcomponents-lite.js'); |
431 | 431 | s.onreadystatechange = s.onload = done; |
432 | 432 | $doc.head.appendChild(s); |
433 | 433 | } |
@@ -530,7 +530,7 @@ public static native <T> List<T> asList(JavaScriptObject o) |
530 | 530 | * penalty because we directly take the native array of the super ArrayList |
531 | 531 | * implementation. |
532 | 532 | */ |
533 | | - public static native <T extends JavaScriptObject> Array<T> asJsArray(List<?> l) |
| 533 | + public static native <T extends JavaScriptObject> JsArray<T> asJsArray(List<?> l) |
534 | 534 | /*-{ |
535 | 535 | return l.@java.util.ArrayList::array; |
536 | 536 | }-*/; |
|
0 commit comments