| OLD | NEW |
| 1 | 1 |
| 2 class EventSourceJs extends DOMTypeJs implements EventSource native "*EventSourc
e" { | 2 class EventSourceJs extends DOMTypeJs implements EventSource native "*EventSourc
e" { |
| 3 | 3 |
| 4 static final int CLOSED = 2; | 4 static final int CLOSED = 2; |
| 5 | 5 |
| 6 static final int CONNECTING = 0; | 6 static final int CONNECTING = 0; |
| 7 | 7 |
| 8 static final int OPEN = 1; | 8 static final int OPEN = 1; |
| 9 | 9 |
| 10 String get URL() native "return this.URL;"; | 10 String get URL() native "return this.URL;"; |
| 11 | 11 |
| 12 int get readyState() native "return this.readyState;"; | 12 int get readyState() native "return this.readyState;"; |
| 13 | 13 |
| 14 String get url() native "return this.url;"; |
| 15 |
| 14 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 16 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 15 | 17 |
| 16 void close() native; | 18 void close() native; |
| 17 | 19 |
| 18 bool dispatchEvent(EventJs evt) native; | 20 bool dispatchEvent(EventJs evt) native; |
| 19 | 21 |
| 20 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 22 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 21 } | 23 } |
| OLD | NEW |