| OLD | NEW |
| 1 | 1 |
| 2 class _EventSourceJs extends _DOMTypeJs implements EventSource native "*EventSou
rce" { | 2 class _EventSourceJs extends _EventTargetJs implements EventSource native "*Even
tSource" { |
| 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 final String URL; | 10 final String URL; |
| 11 | 11 |
| 12 final int readyState; | 12 final int readyState; |
| 13 | 13 |
| 14 final String url; | 14 final String url; |
| 15 | 15 |
| 16 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; | 16 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) native; |
| 17 | 17 |
| 18 void close() native; | 18 void close() native; |
| 19 | 19 |
| 20 bool dispatchEvent(_EventJs evt) native; | 20 bool dispatchEvent(_EventJs evt) native; |
| 21 | 21 |
| 22 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; | 22 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) native; |
| 23 } | 23 } |
| OLD | NEW |