Fixes bugs in JSO and DOM

This commit is contained in:
konsoletyper 2014-04-22 14:24:02 +04:00
parent 6c3d95a935
commit 7cd8f53631
4 changed files with 4 additions and 6 deletions

View File

@ -16,7 +16,6 @@
package org.teavm.dom.browser; package org.teavm.dom.browser;
import org.teavm.dom.core.Document; import org.teavm.dom.core.Document;
import org.teavm.dom.core.Element;
import org.teavm.jso.JSGlobal; import org.teavm.jso.JSGlobal;
import org.teavm.jso.JSObject; import org.teavm.jso.JSObject;
import org.teavm.jso.JSProperty; import org.teavm.jso.JSProperty;
@ -29,9 +28,6 @@ public interface Window extends JSGlobal {
@JSProperty @JSProperty
Document getDocument(); Document getDocument();
@JSProperty
Element getBody();
void alert(JSObject message); void alert(JSObject message);
void alert(String message); void alert(String message);

View File

@ -47,7 +47,7 @@ public interface Document extends Node {
EntityReference createEntityReference(String name); EntityReference createEntityReference(String name);
NodeList<Element> getElementsByTagName(); NodeList<Element> getElementsByTagName(String name);
<T extends Node> T importNode(T importedNode, boolean deep); <T extends Node> T importNode(T importedNode, boolean deep);

View File

@ -22,7 +22,7 @@ import org.teavm.jso.JSProperty;
* *
* @author Alexey Andreev * @author Alexey Andreev
*/ */
public interface NodeList<T extends Node> extends JSArray<Node> { public interface NodeList<T extends Node> extends JSArray<T> {
T item(int index); T item(int index);
@Override @Override

View File

@ -28,4 +28,6 @@ public interface JSArray<T extends JSObject> extends JSObject {
@JSIndexer @JSIndexer
void set(int index, T value); void set(int index, T value);
void push(T value);
} }