mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fixes bugs in JSO and DOM
This commit is contained in:
parent
6c3d95a935
commit
7cd8f53631
|
@ -16,7 +16,6 @@
|
|||
package org.teavm.dom.browser;
|
||||
|
||||
import org.teavm.dom.core.Document;
|
||||
import org.teavm.dom.core.Element;
|
||||
import org.teavm.jso.JSGlobal;
|
||||
import org.teavm.jso.JSObject;
|
||||
import org.teavm.jso.JSProperty;
|
||||
|
@ -29,9 +28,6 @@ public interface Window extends JSGlobal {
|
|||
@JSProperty
|
||||
Document getDocument();
|
||||
|
||||
@JSProperty
|
||||
Element getBody();
|
||||
|
||||
void alert(JSObject message);
|
||||
|
||||
void alert(String message);
|
||||
|
|
|
@ -47,7 +47,7 @@ public interface Document extends Node {
|
|||
|
||||
EntityReference createEntityReference(String name);
|
||||
|
||||
NodeList<Element> getElementsByTagName();
|
||||
NodeList<Element> getElementsByTagName(String name);
|
||||
|
||||
<T extends Node> T importNode(T importedNode, boolean deep);
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.teavm.jso.JSProperty;
|
|||
*
|
||||
* @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);
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,4 +28,6 @@ public interface JSArray<T extends JSObject> extends JSObject {
|
|||
|
||||
@JSIndexer
|
||||
void set(int index, T value);
|
||||
|
||||
void push(T value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user