Skip to content

Commit 0ad6d12

Browse files
committed
change Array to JsArray in polymer and PolymerTemplate
1 parent 7e2c62b commit 0ad6d12

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/com/vaadin/polymer/Polymer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public static native <T> List<T> asList(JavaScriptObject o)
530530
* penalty because we directly take the native array of the super ArrayList
531531
* implementation.
532532
*/
533-
public static native <T extends JavaScriptObject> Array<T> asJsArray(List<?> l)
533+
public static native <T extends JavaScriptObject> JsArray<T> asJsArray(List<?> l)
534534
/*-{
535535
return l.@java.util.ArrayList::array;
536536
}-*/;

lib/com/vaadin/polymer/PolymerTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public class PolymerTemplate extends HTMLElement {
1818
@JsProperty public native String getIdexAs();
1919
@JsProperty public native void setIndexAs(String value);
2020

21-
@JsProperty public native Array<?> getItems();
22-
@JsProperty public native void setItems(Array<?> items);
21+
@JsProperty public native JsArray<?> getItems();
22+
@JsProperty public native void setItems(JsArray<?> items);
2323

2424
@JsProperty public native void setFilter(PolymerFunction<Boolean, ?> items);
2525

0 commit comments

Comments
 (0)