mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-14 23:09:22 +00:00
fixed tying for NodeListOf
This commit is contained in:
parent
fb3ed64482
commit
90e35a7931
@ -1,12 +1,9 @@
|
||||
package def.dom;
|
||||
public class NodeList extends def.js.Object implements Iterable<Node> {
|
||||
public double length;
|
||||
native public Node item(double index);
|
||||
native public Node $get(double index);
|
||||
public class NodeList extends def.js.Object {
|
||||
public int length;
|
||||
native public Node item(int index);
|
||||
native public Node $get(int index);
|
||||
public static NodeList prototype;
|
||||
public NodeList(){}
|
||||
/** From Iterable, to allow foreach loop (do not use directly). */
|
||||
@jsweet.lang.Erased
|
||||
native public java.util.Iterator<Node> iterator();
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
package def.dom;
|
||||
@jsweet.lang.Interface
|
||||
public abstract class NodeListOf<TNode extends Node> extends NodeList {
|
||||
public abstract class NodeListOf<TNode extends Node> extends NodeList implements Iterable<TNode> {
|
||||
public double length;
|
||||
native public TNode item(int index);
|
||||
native public TNode $get(int index);
|
||||
}
|
||||
|
||||
|
||||
@ -1,16 +1,10 @@
|
||||
package def.dom;
|
||||
|
||||
import def.js.Iterable;
|
||||
|
||||
@jsweet.lang.SyntacticIterable
|
||||
public class NodeList extends Iterable<Node> implements java.lang.Iterable<Node> {
|
||||
public class NodeList {
|
||||
public double length;
|
||||
native public Node item(double index);
|
||||
native public Node $get(double index);
|
||||
public static NodeList prototype;
|
||||
public NodeList(){}
|
||||
/** From Iterable, to allow foreach loop (do not use directly). */
|
||||
@jsweet.lang.Erased
|
||||
native public java.util.Iterator<Node> iterator();
|
||||
}
|
||||
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
package def.dom;
|
||||
|
||||
@jsweet.lang.Interface
|
||||
public abstract class NodeListOf<TNode extends Node> extends NodeList {
|
||||
public abstract class NodeListOf<TNode extends Node> extends NodeList implements Iterable<TNode> {
|
||||
public double length;
|
||||
native public TNode item(int index);
|
||||
native public TNode $get(int index);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user