| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 11397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11408 @DocsEditable | 11408 @DocsEditable |
| 11409 static const EventStreamProvider<ProgressEvent> readyStateChangeEvent = const
EventStreamProvider<ProgressEvent>('readystatechange'); | 11409 static const EventStreamProvider<ProgressEvent> readyStateChangeEvent = const
EventStreamProvider<ProgressEvent>('readystatechange'); |
| 11410 | 11410 |
| 11411 /** | 11411 /** |
| 11412 * General constructor for any type of request (GET, POST, etc). | 11412 * General constructor for any type of request (GET, POST, etc). |
| 11413 * | 11413 * |
| 11414 * This call is used in conjunction with [open]: | 11414 * This call is used in conjunction with [open]: |
| 11415 * | 11415 * |
| 11416 * var request = new HttpRequest(); | 11416 * var request = new HttpRequest(); |
| 11417 * request.open('GET', 'http://dartlang.org') | 11417 * request.open('GET', 'http://dartlang.org') |
| 11418 * request.on.load.add((event) => print('Request complete')); | 11418 * request.onLoad.add((event) => print('Request complete')); |
| 11419 * | 11419 * |
| 11420 * is the (more verbose) equivalent of | 11420 * is the (more verbose) equivalent of |
| 11421 * | 11421 * |
| 11422 * var request = new HttpRequest.get('http://dartlang.org', | 11422 * HttpRequest.getString('http://dartlang.org').then( |
| 11423 * (event) => print('Request complete')); | 11423 * (result) => print('Request complete: $result')); |
| 11424 */ | 11424 */ |
| 11425 @DomName('XMLHttpRequest.XMLHttpRequest') | 11425 @DomName('XMLHttpRequest.XMLHttpRequest') |
| 11426 @DocsEditable | 11426 @DocsEditable |
| 11427 factory HttpRequest() { | 11427 factory HttpRequest() { |
| 11428 return HttpRequest._create_1(); | 11428 return HttpRequest._create_1(); |
| 11429 } | 11429 } |
| 11430 static HttpRequest _create_1() => JS('HttpRequest', 'new XMLHttpRequest()'); | 11430 static HttpRequest _create_1() => JS('HttpRequest', 'new XMLHttpRequest()'); |
| 11431 | 11431 |
| 11432 @DomName('XMLHttpRequest.DONE') | 11432 @DomName('XMLHttpRequest.DONE') |
| 11433 @DocsEditable | 11433 @DocsEditable |
| (...skipping 17839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29273 _position = nextPosition; | 29273 _position = nextPosition; |
| 29274 return true; | 29274 return true; |
| 29275 } | 29275 } |
| 29276 _current = null; | 29276 _current = null; |
| 29277 _position = _array.length; | 29277 _position = _array.length; |
| 29278 return false; | 29278 return false; |
| 29279 } | 29279 } |
| 29280 | 29280 |
| 29281 T get current => _current; | 29281 T get current => _current; |
| 29282 } | 29282 } |
| OLD | NEW |