Index: lib/runtime/dart/html.js |
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js |
index ae1dc0836c7a37077baee7a81e092c4ebd253703..06a811bb2ec52809e473bd75a045431d3217022c 100644 |
--- a/lib/runtime/dart/html.js |
+++ b/lib/runtime/dart/html.js |
@@ -2,18 +2,18 @@ dart_library.library('dart/html', null, /* Imports */[ |
'dart/_runtime', |
'dart/math', |
'dart/core', |
+ 'dart/_metadata', |
'dart/_js_helper', |
'dart/async', |
'dart/collection', |
'dart/_foreign_helper', |
'dart/isolate' |
], /* Lazy imports */[ |
- 'dart/_metadata', |
'dart/html_common' |
-], function(exports, dart, math, core, _js_helper, async, collection, _foreign_helper, isolate, _metadata, html_common) { |
+], function(exports, dart, math, core, _metadata, _js_helper, $async, collection, _foreign_helper, isolate, html_common) { |
'use strict'; |
let dartx = dart.dartx; |
- dart.export(exports, math, ['Rectangle', 'Point'], []); |
+ dart.export_(exports, math, ['Rectangle', 'Point'], []); |
class DartHtmlDomObject extends core.Object { |
DartHtmlDomObject() { |
this.raw = null; |
@@ -1620,7 +1620,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.setSignature(EventStreamProvider, { |
constructors: () => ({EventStreamProvider: [EventStreamProvider$(T), [core.String]]}), |
methods: () => ({ |
- forTarget: [async.Stream$(T), [EventTarget], {useCapture: core.bool}], |
+ forTarget: [$async.Stream$(T), [EventTarget], {useCapture: core.bool}], |
forElement: [ElementStream$(T), [Element], {useCapture: core.bool}], |
[_forElementList]: [ElementStream$(T), [ElementList], {useCapture: core.bool}], |
getEventType: [core.String, [EventTarget]] |
@@ -1628,7 +1628,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
}); |
return EventStreamProvider; |
}); |
- let EventStreamProvider = EventStreamProvider$(); |
+ const EventStreamProvider = EventStreamProvider$(); |
const _createEvent = Symbol('_createEvent'); |
const _initEvent = Symbol('_initEvent'); |
const _selector = Symbol('_selector'); |
@@ -5319,7 +5319,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
class ElementList extends collection.ListBase$(T) {} |
return ElementList; |
}); |
- let ElementList = ElementList$(); |
+ const ElementList = ElementList$(); |
const _nodeList = Symbol('_nodeList'); |
class _FrozenElementList extends collection.ListBase$(Element) { |
_wrap(nodeList) { |
@@ -5487,7 +5487,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
} |
dart.setSignature(Events, { |
constructors: () => ({Events: [Events, [EventTarget]]}), |
- methods: () => ({get: [async.Stream, [core.String]]}) |
+ methods: () => ({get: [$async.Stream, [core.String]]}) |
}); |
class ElementEvents extends Events { |
ElementEvents(ptr) { |
@@ -5766,7 +5766,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
]); |
return ImmutableListMixin; |
}); |
- let ImmutableListMixin = ImmutableListMixin$(); |
+ const ImmutableListMixin = ImmutableListMixin$(); |
const _namedItem_1 = Symbol('_namedItem_1'); |
class HtmlCollection extends dart.mixin(DartHtmlDomObject, collection.ListMixin$(Node), ImmutableListMixin$(Node)) { |
static _() { |
@@ -5997,7 +5997,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.setSignature(_CustomEventStreamProvider, { |
constructors: () => ({_CustomEventStreamProvider: [_CustomEventStreamProvider$(T), [dart.dynamic]]}), |
methods: () => ({ |
- forTarget: [async.Stream$(T), [EventTarget], {useCapture: core.bool}], |
+ forTarget: [$async.Stream$(T), [EventTarget], {useCapture: core.bool}], |
forElement: [ElementStream$(T), [Element], {useCapture: core.bool}], |
[_forElementList]: [ElementStream$(T), [ElementList], {useCapture: core.bool}], |
getEventType: [core.String, [EventTarget]] |
@@ -6005,7 +6005,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
}); |
return _CustomEventStreamProvider; |
}); |
- let _CustomEventStreamProvider = _CustomEventStreamProvider$(); |
+ const _CustomEventStreamProvider = _CustomEventStreamProvider$(); |
HtmlDocument.visibilityChangeEvent = dart.const(new (_CustomEventStreamProvider$(Event))(HtmlDocument._determineVisibilityChangeEventType)); |
class HtmlHtmlElement extends HtmlElement { |
static _() { |
@@ -6113,7 +6113,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
let requestHeaders = opts && 'requestHeaders' in opts ? opts.requestHeaders : null; |
let sendData = opts && 'sendData' in opts ? opts.sendData : null; |
let onProgress = opts && 'onProgress' in opts ? opts.onProgress : null; |
- let completer = async.Completer$(HttpRequest).new(); |
+ let completer = $async.Completer$(HttpRequest).new(); |
let xhr = HttpRequest.new(); |
if (method == null) { |
method = 'GET'; |
@@ -6173,7 +6173,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
if (dart.notNull(HttpRequest.supportsCrossOrigin)) { |
return dart.as(HttpRequest.request(url, {method: method, sendData: sendData}).then(dart.fn(xhr => { |
return xhr.responseText; |
- }, dart.dynamic, [HttpRequest])), async.Future$(core.String)); |
+ }, dart.dynamic, [HttpRequest])), $async.Future$(core.String)); |
} |
} |
get responseHeaders() { |
@@ -6202,13 +6202,13 @@ dart_library.library('dart/html', null, /* Imports */[ |
return headers; |
} |
open(method, url, opts) { |
- let async = opts && 'async' in opts ? opts.async : null; |
+ let async$ = opts && 'async' in opts ? opts.async : null; |
let user = opts && 'user' in opts ? opts.user : null; |
let password = opts && 'password' in opts ? opts.password : null; |
- if (async == null && user == null && password == null) { |
+ if (async$ == null && user == null && password == null) { |
this.raw.open(method, url); |
} else { |
- this.raw.open(method, url, async, user, password); |
+ this.raw.open(method, url, async$, user, password); |
} |
} |
get responseType() { |
@@ -6358,10 +6358,10 @@ dart_library.library('dart/html', null, /* Imports */[ |
[_setRequestHeader_1]: [dart.void, [dart.dynamic, dart.dynamic]] |
}), |
statics: () => ({ |
- getString: [async.Future$(core.String), [core.String], {withCredentials: core.bool, onProgress: dart.functionType(dart.void, [ProgressEvent])}], |
- postFormData: [async.Future$(HttpRequest), [core.String, core.Map$(core.String, core.String)], {withCredentials: core.bool, responseType: core.String, requestHeaders: core.Map$(core.String, core.String), onProgress: dart.functionType(dart.void, [ProgressEvent])}], |
- request: [async.Future$(HttpRequest), [core.String], {method: core.String, withCredentials: core.bool, responseType: core.String, mimeType: core.String, requestHeaders: core.Map$(core.String, core.String), sendData: dart.dynamic, onProgress: dart.functionType(dart.void, [ProgressEvent])}], |
- requestCrossOrigin: [async.Future$(core.String), [core.String], {method: core.String, sendData: core.String}], |
+ getString: [$async.Future$(core.String), [core.String], {withCredentials: core.bool, onProgress: dart.functionType(dart.void, [ProgressEvent])}], |
+ postFormData: [$async.Future$(HttpRequest), [core.String, core.Map$(core.String, core.String)], {withCredentials: core.bool, responseType: core.String, requestHeaders: core.Map$(core.String, core.String), onProgress: dart.functionType(dart.void, [ProgressEvent])}], |
+ request: [$async.Future$(HttpRequest), [core.String], {method: core.String, withCredentials: core.bool, responseType: core.String, mimeType: core.String, requestHeaders: core.Map$(core.String, core.String), sendData: dart.dynamic, onProgress: dart.functionType(dart.void, [ProgressEvent])}], |
+ requestCrossOrigin: [$async.Future$(core.String), [core.String], {method: core.String, sendData: core.String}], |
_create_1: [HttpRequest, []], |
internalCreateHttpRequest: [HttpRequest, []] |
}), |
@@ -7546,7 +7546,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
return this[_getBattery_1](); |
} |
[_getBattery_1]() { |
- return dart.as(wrap_jso(this.raw.getBattery()), async.Future); |
+ return dart.as(wrap_jso(this.raw.getBattery()), $async.Future); |
} |
getStorageUpdates() { |
this[_getStorageUpdates_1](); |
@@ -7580,8 +7580,8 @@ dart_library.library('dart/html', null, /* Imports */[ |
internal_: [Navigator, []] |
}), |
methods: () => ({ |
- getBattery: [async.Future, []], |
- [_getBattery_1]: [async.Future, []], |
+ getBattery: [$async.Future, []], |
+ [_getBattery_1]: [$async.Future, []], |
getStorageUpdates: [dart.void, []], |
[_getStorageUpdates_1]: [dart.void, []], |
registerProtocolHandler: [dart.void, [core.String, core.String, core.String]], |
@@ -8604,7 +8604,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
const _stop_1 = Symbol('_stop_1'); |
class Window extends EventTarget { |
get animationFrame() { |
- let completer = async.Completer$(core.num).sync(); |
+ let completer = $async.Completer$(core.num).sync(); |
this.requestAnimationFrame(dart.fn(time => { |
completer.complete(time); |
}, dart.void, [core.num])); |
@@ -10193,14 +10193,14 @@ dart_library.library('dart/html', null, /* Imports */[ |
const EventListener = dart.typedef('EventListener', () => dart.functionType(dart.dynamic, [Event])); |
const ElementStream$ = dart.generic(function(T) { |
class ElementStream extends core.Object {} |
- ElementStream[dart.implements] = () => [async.Stream$(T)]; |
+ ElementStream[dart.implements] = () => [$async.Stream$(T)]; |
return ElementStream; |
}); |
- let ElementStream = ElementStream$(); |
+ const ElementStream = ElementStream$(); |
const _target = Symbol('_target'); |
const _useCapture = Symbol('_useCapture'); |
const _EventStream$ = dart.generic(function(T) { |
- class _EventStream extends async.Stream$(T) { |
+ class _EventStream extends $async.Stream$(T) { |
_EventStream(target, eventType, useCapture) { |
this[_target] = target; |
this[_eventType] = eventType; |
@@ -10209,9 +10209,9 @@ dart_library.library('dart/html', null, /* Imports */[ |
} |
asBroadcastStream(opts) { |
let onListen = opts && 'onListen' in opts ? opts.onListen : null; |
- dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription$(T)])); |
+ dart.as(onListen, dart.functionType(dart.void, [$async.StreamSubscription$(T)])); |
let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; |
- dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription$(T)])); |
+ dart.as(onCancel, dart.functionType(dart.void, [$async.StreamSubscription$(T)])); |
return this; |
} |
get isBroadcast() { |
@@ -10229,13 +10229,13 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.setSignature(_EventStream, { |
constructors: () => ({_EventStream: [_EventStream$(T), [EventTarget, core.String, core.bool]]}), |
methods: () => ({ |
- asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(dart.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [async.StreamSubscription$(T)])}], |
- listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError: core.bool}] |
+ asBroadcastStream: [$async.Stream$(T), [], {onListen: dart.functionType(dart.void, [$async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [$async.StreamSubscription$(T)])}], |
+ listen: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError: core.bool}] |
}) |
}); |
return _EventStream; |
}); |
- let _EventStream = _EventStream$(); |
+ const _EventStream = _EventStream$(); |
const _ElementEventStreamImpl$ = dart.generic(function(T) { |
class _ElementEventStreamImpl extends _EventStream$(T) { |
_ElementEventStreamImpl(target, eventType, useCapture) { |
@@ -10246,7 +10246,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.as(e, T); |
e[_selector] = selector; |
return e; |
- }, dart.dynamic, [T])), async.Stream$(T)); |
+ }, dart.dynamic, [T])), $async.Stream$(T)); |
} |
capture(onData) { |
dart.as(onData, dart.functionType(dart.void, [T])); |
@@ -10257,16 +10257,16 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.setSignature(_ElementEventStreamImpl, { |
constructors: () => ({_ElementEventStreamImpl: [_ElementEventStreamImpl$(T), [dart.dynamic, dart.dynamic, dart.dynamic]]}), |
methods: () => ({ |
- matches: [async.Stream$(T), [core.String]], |
- capture: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T])]] |
+ matches: [$async.Stream$(T), [core.String]], |
+ capture: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T])]] |
}) |
}); |
return _ElementEventStreamImpl; |
}); |
- let _ElementEventStreamImpl = _ElementEventStreamImpl$(); |
+ const _ElementEventStreamImpl = _ElementEventStreamImpl$(); |
const _targetList = Symbol('_targetList'); |
const _ElementListEventStreamImpl$ = dart.generic(function(T) { |
- class _ElementListEventStreamImpl extends async.Stream$(T) { |
+ class _ElementListEventStreamImpl extends $async.Stream$(T) { |
_ElementListEventStreamImpl(targetList, eventType, useCapture) { |
this[_targetList] = targetList; |
this[_eventType] = eventType; |
@@ -10278,7 +10278,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.as(e, T); |
e[_selector] = selector; |
return e; |
- }, dart.dynamic, [T])), async.Stream$(T)); |
+ }, dart.dynamic, [T])), $async.Stream$(T)); |
} |
listen(onData, opts) { |
dart.as(onData, dart.functionType(dart.void, [T])); |
@@ -10290,7 +10290,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
for (let target of this[_targetList]) { |
pool.add(new _EventStream(target, this[_eventType], this[_useCapture])); |
} |
- return dart.as(pool.stream.listen(onData, {onError: onError, onDone: onDone, cancelOnError: cancelOnError}), async.StreamSubscription$(T)); |
+ return dart.as(pool.stream.listen(onData, {onError: onError, onDone: onDone, cancelOnError: cancelOnError}), $async.StreamSubscription$(T)); |
} |
capture(onData) { |
dart.as(onData, dart.functionType(dart.void, [T])); |
@@ -10298,13 +10298,13 @@ dart_library.library('dart/html', null, /* Imports */[ |
for (let target of this[_targetList]) { |
pool.add(new _EventStream(target, this[_eventType], true)); |
} |
- return dart.as(pool.stream.listen(onData), async.StreamSubscription$(T)); |
+ return dart.as(pool.stream.listen(onData), $async.StreamSubscription$(T)); |
} |
asBroadcastStream(opts) { |
let onListen = opts && 'onListen' in opts ? opts.onListen : null; |
- dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription$(T)])); |
+ dart.as(onListen, dart.functionType(dart.void, [$async.StreamSubscription$(T)])); |
let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; |
- dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription$(T)])); |
+ dart.as(onCancel, dart.functionType(dart.void, [$async.StreamSubscription$(T)])); |
return this; |
} |
get isBroadcast() { |
@@ -10315,22 +10315,22 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.setSignature(_ElementListEventStreamImpl, { |
constructors: () => ({_ElementListEventStreamImpl: [_ElementListEventStreamImpl$(T), [core.Iterable$(Element), core.String, core.bool]]}), |
methods: () => ({ |
- matches: [async.Stream$(T), [core.String]], |
- listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError: core.bool}], |
- capture: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T])]], |
- asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(dart.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [async.StreamSubscription$(T)])}] |
+ matches: [$async.Stream$(T), [core.String]], |
+ listen: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError: core.bool}], |
+ capture: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T])]], |
+ asBroadcastStream: [$async.Stream$(T), [], {onListen: dart.functionType(dart.void, [$async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [$async.StreamSubscription$(T)])}] |
}) |
}); |
return _ElementListEventStreamImpl; |
}); |
- let _ElementListEventStreamImpl = _ElementListEventStreamImpl$(); |
+ const _ElementListEventStreamImpl = _ElementListEventStreamImpl$(); |
const _onData = Symbol('_onData'); |
const _pauseCount = Symbol('_pauseCount'); |
const _tryResume = Symbol('_tryResume'); |
const _canceled = Symbol('_canceled'); |
const _unlisten = Symbol('_unlisten'); |
const _EventStreamSubscription$ = dart.generic(function(T) { |
- class _EventStreamSubscription extends async.StreamSubscription$(T) { |
+ class _EventStreamSubscription extends $async.StreamSubscription$(T) { |
_EventStreamSubscription(target, eventType, onData, useCapture) { |
this[_target] = target; |
this[_eventType] = eventType; |
@@ -10391,43 +10391,43 @@ dart_library.library('dart/html', null, /* Imports */[ |
} |
asFuture(futureValue) { |
if (futureValue === void 0) futureValue = null; |
- let completer = async.Completer.new(); |
+ let completer = $async.Completer.new(); |
return completer.future; |
} |
} |
dart.setSignature(_EventStreamSubscription, { |
constructors: () => ({_EventStreamSubscription: [_EventStreamSubscription$(T), [EventTarget, core.String, dart.dynamic, core.bool]]}), |
methods: () => ({ |
- cancel: [async.Future, []], |
+ cancel: [$async.Future, []], |
onData: [dart.void, [dart.functionType(dart.void, [T])]], |
onError: [dart.void, [core.Function]], |
onDone: [dart.void, [dart.functionType(dart.void, [])]], |
- pause: [dart.void, [], [async.Future]], |
+ pause: [dart.void, [], [$async.Future]], |
resume: [dart.void, []], |
[_tryResume]: [dart.void, []], |
[_unlisten]: [dart.void, []], |
- asFuture: [async.Future, [], [dart.dynamic]] |
+ asFuture: [$async.Future, [], [dart.dynamic]] |
}) |
}); |
return _EventStreamSubscription; |
}); |
- let _EventStreamSubscription = _EventStreamSubscription$(); |
+ const _EventStreamSubscription = _EventStreamSubscription$(); |
const CustomStream$ = dart.generic(function(T) { |
class CustomStream extends core.Object {} |
- CustomStream[dart.implements] = () => [async.Stream$(T)]; |
+ CustomStream[dart.implements] = () => [$async.Stream$(T)]; |
return CustomStream; |
}); |
- let CustomStream = CustomStream$(); |
+ const CustomStream = CustomStream$(); |
const _streamController = Symbol('_streamController'); |
const _type = Symbol('_type'); |
const _CustomEventStreamImpl$ = dart.generic(function(T) { |
- class _CustomEventStreamImpl extends async.Stream$(T) { |
+ class _CustomEventStreamImpl extends $async.Stream$(T) { |
_CustomEventStreamImpl(type) { |
this[_streamController] = null; |
this[_type] = null; |
super.Stream(); |
this[_type] = type; |
- this[_streamController] = async.StreamController$(T).broadcast({sync: true}); |
+ this[_streamController] = $async.StreamController$(T).broadcast({sync: true}); |
} |
listen(onData, opts) { |
dart.as(onData, dart.functionType(dart.void, [T])); |
@@ -10439,9 +10439,9 @@ dart_library.library('dart/html', null, /* Imports */[ |
} |
asBroadcastStream(opts) { |
let onListen = opts && 'onListen' in opts ? opts.onListen : null; |
- dart.as(onListen, dart.functionType(dart.void, [async.StreamSubscription$(T)])); |
+ dart.as(onListen, dart.functionType(dart.void, [$async.StreamSubscription$(T)])); |
let onCancel = opts && 'onCancel' in opts ? opts.onCancel : null; |
- dart.as(onCancel, dart.functionType(dart.void, [async.StreamSubscription$(T)])); |
+ dart.as(onCancel, dart.functionType(dart.void, [$async.StreamSubscription$(T)])); |
return this[_streamController].stream; |
} |
get isBroadcast() { |
@@ -10456,14 +10456,14 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.setSignature(_CustomEventStreamImpl, { |
constructors: () => ({_CustomEventStreamImpl: [_CustomEventStreamImpl$(T), [core.String]]}), |
methods: () => ({ |
- listen: [async.StreamSubscription$(T), [dart.functionType(dart.void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError: core.bool}], |
- asBroadcastStream: [async.Stream$(T), [], {onListen: dart.functionType(dart.void, [async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [async.StreamSubscription$(T)])}], |
+ listen: [$async.StreamSubscription$(T), [dart.functionType(dart.void, [T])], {onError: core.Function, onDone: dart.functionType(dart.void, []), cancelOnError: core.bool}], |
+ asBroadcastStream: [$async.Stream$(T), [], {onListen: dart.functionType(dart.void, [$async.StreamSubscription$(T)]), onCancel: dart.functionType(dart.void, [$async.StreamSubscription$(T)])}], |
add: [dart.void, [T]] |
}) |
}); |
return _CustomEventStreamImpl; |
}); |
- let _CustomEventStreamImpl = _CustomEventStreamImpl$(); |
+ const _CustomEventStreamImpl = _CustomEventStreamImpl$(); |
class _WrappedEvent extends core.Object { |
_WrappedEvent(wrapped) { |
this.wrapped = wrapped; |
@@ -10772,20 +10772,20 @@ dart_library.library('dart/html', null, /* Imports */[ |
const _StreamPool$ = dart.generic(function(T) { |
class _StreamPool extends core.Object { |
broadcast() { |
- this[_subscriptions] = core.Map$(async.Stream$(T), async.StreamSubscription$(T)).new(); |
+ this[_subscriptions] = core.Map$($async.Stream$(T), $async.StreamSubscription$(T)).new(); |
this[_controller] = null; |
- this[_controller] = async.StreamController$(T).broadcast({sync: true, onCancel: dart.bind(this, 'close')}); |
+ this[_controller] = $async.StreamController$(T).broadcast({sync: true, onCancel: dart.bind(this, 'close')}); |
} |
get stream() { |
return this[_controller].stream; |
} |
add(stream) { |
- dart.as(stream, async.Stream$(T)); |
+ dart.as(stream, $async.Stream$(T)); |
if (dart.notNull(this[_subscriptions].containsKey(stream))) return; |
this[_subscriptions].set(stream, stream.listen(dart.bind(this[_controller], 'add'), {onError: dart.bind(this[_controller], 'addError'), onDone: dart.fn((() => this.remove(stream)).bind(this), dart.void, [])})); |
} |
remove(stream) { |
- dart.as(stream, async.Stream$(T)); |
+ dart.as(stream, $async.Stream$(T)); |
let subscription = this[_subscriptions].remove(stream); |
if (subscription != null) subscription.cancel(); |
} |
@@ -10801,14 +10801,14 @@ dart_library.library('dart/html', null, /* Imports */[ |
dart.setSignature(_StreamPool, { |
constructors: () => ({broadcast: [_StreamPool$(T), []]}), |
methods: () => ({ |
- add: [dart.void, [async.Stream$(T)]], |
- remove: [dart.void, [async.Stream$(T)]], |
+ add: [dart.void, [$async.Stream$(T)]], |
+ remove: [dart.void, [$async.Stream$(T)]], |
close: [dart.void, []] |
}) |
}); |
return _StreamPool; |
}); |
- let _StreamPool = _StreamPool$(); |
+ const _StreamPool = _StreamPool$(); |
class _Html5NodeValidator extends core.Object { |
_Html5NodeValidator(opts) { |
let uriPolicy = opts && 'uriPolicy' in opts ? opts.uriPolicy : null; |
@@ -11971,7 +11971,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
]); |
return _WrappedList; |
}); |
- let _WrappedList = _WrappedList$(); |
+ const _WrappedList = _WrappedList$(); |
const _iterator = Symbol('_iterator'); |
const _WrappedIterator$ = dart.generic(function(E) { |
class _WrappedIterator extends core.Object { |
@@ -11992,7 +11992,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
}); |
return _WrappedIterator; |
}); |
- let _WrappedIterator = _WrappedIterator$(); |
+ const _WrappedIterator = _WrappedIterator$(); |
class _HttpRequestUtils extends core.Object { |
static get(url, onComplete, withCredentials) { |
let request = HttpRequest.new(); |
@@ -12045,7 +12045,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
}); |
return FixedSizeListIterator; |
}); |
- let FixedSizeListIterator = FixedSizeListIterator$(); |
+ const FixedSizeListIterator = FixedSizeListIterator$(); |
const _VariableSizeListIterator$ = dart.generic(function(T) { |
class _VariableSizeListIterator extends core.Object { |
_VariableSizeListIterator(array) { |
@@ -12075,7 +12075,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
}); |
return _VariableSizeListIterator; |
}); |
- let _VariableSizeListIterator = _VariableSizeListIterator$(); |
+ const _VariableSizeListIterator = _VariableSizeListIterator$(); |
function _convertNativeToDart_Window(win) { |
if (win == null) return null; |
return _DOMWindowCrossFrame._createSafe(win); |
@@ -12271,18 +12271,18 @@ dart_library.library('dart/html', null, /* Imports */[ |
set keyPressEvent(_) {} |
}); |
class Platform extends core.Object {} |
- const supportsTypedData = !!window.ArrayBuffer; |
+ const supportsTypedData = !!dart.global.ArrayBuffer; |
Platform.supportsSimd = false; |
function _wrapZone(callback) { |
- if (dart.equals(async.Zone.current, async.Zone.ROOT)) return callback; |
+ if (dart.equals($async.Zone.current, $async.Zone.ROOT)) return callback; |
if (callback == null) return null; |
- return async.Zone.current.bindUnaryCallback(callback, {runGuarded: true}); |
+ return $async.Zone.current.bindUnaryCallback(callback, {runGuarded: true}); |
} |
dart.fn(_wrapZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.dynamic])]); |
function _wrapBinaryZone(callback) { |
- if (dart.equals(async.Zone.current, async.Zone.ROOT)) return callback; |
+ if (dart.equals($async.Zone.current, $async.Zone.ROOT)) return callback; |
if (callback == null) return null; |
- return async.Zone.current.bindBinaryCallback(callback, {runGuarded: true}); |
+ return $async.Zone.current.bindBinaryCallback(callback, {runGuarded: true}); |
} |
dart.fn(_wrapBinaryZone, dart.dynamic, [dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic])]); |
function query(relativeSelectors) { |
@@ -12506,10 +12506,12 @@ dart_library.library('dart/html', null, /* Imports */[ |
sanitizeNode: [dart.void, [Node, Node]] |
}) |
}); |
- dart.copyProperties(exports, { |
+ dart.defineLazyProperties(exports, { |
get window() { |
- return dart.as(wrap_jso(window), Window); |
- }, |
+ return dart.as(wrap_jso(dart.global), Window); |
+ } |
+ }); |
+ dart.copyProperties(exports, { |
get document() { |
return dart.as(wrap_jso(document), HtmlDocument); |
} |
@@ -12520,7 +12522,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
function spawnDomUri(uri, args, message) { |
dart.throw(new core.UnimplementedError()); |
} |
- dart.fn(spawnDomUri, async.Future$(isolate.Isolate), [core.Uri, core.List$(core.String), dart.dynamic]); |
+ dart.fn(spawnDomUri, $async.Future$(isolate.Isolate), [core.Uri, core.List$(core.String), dart.dynamic]); |
const _F1 = dart.typedef('_F1', () => dart.functionType(dart.dynamic, [dart.dynamic])); |
const _wrapper = Symbol("dart_wrapper"); |
function unwrap_jso(wrapped) { |