| OLD | NEW |
| 1 dart_library.library('dart/html_common', null, /* Imports */[ | 1 dart_library.library('dart/html_common', null, /* Imports */[ |
| 2 'dart/_runtime', | 2 'dart/_runtime', |
| 3 'dart/_metadata', | 3 'dart/_metadata', |
| 4 'dart/core', | 4 'dart/core', |
| 5 'dart/html', | 5 'dart/html', |
| 6 'dart/typed_data', | 6 'dart/typed_data', |
| 7 'dart/_js_helper', | 7 'dart/_js_helper', |
| 8 'dart/_native_typed_data', | 8 'dart/_native_typed_data', |
| 9 'dart/async', | 9 'dart/async', |
| 10 'dart/_internal', | 10 'dart/_internal', |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 if (!(typeof value == 'string')) return false; | 102 if (!(typeof value == 'string')) return false; |
| 103 let s = this.readClasses(); | 103 let s = this.readClasses(); |
| 104 let result = s.remove(value); | 104 let result = s.remove(value); |
| 105 this.writeClasses(s); | 105 this.writeClasses(s); |
| 106 return result; | 106 return result; |
| 107 } | 107 } |
| 108 addAll(iterable) { | 108 addAll(iterable) { |
| 109 this.modify(dart.fn(s => s.addAll(iterable[dartx.map](dart.bind(this, _val
idateToken))), dart.void, [core.Set$(core.String)])); | 109 this.modify(dart.fn(s => s.addAll(iterable[dartx.map](dart.bind(this, _val
idateToken))), dart.void, [core.Set$(core.String)])); |
| 110 } | 110 } |
| 111 removeAll(iterable) { | 111 removeAll(iterable) { |
| 112 this.modify(dart.fn(s => s.removeAll(iterable[dartx.map](dart.as(dart.bind
(this, _validateToken), __CastType0))), dart.void, [core.Set$(core.String)])); | 112 this.modify(dart.fn(s => s.removeAll(iterable[dartx.map](dart.as(dart.bind
(this, _validateToken), dart.functionType(core.String, [core.Object])))), dart.v
oid, [core.Set$(core.String)])); |
| 113 } | 113 } |
| 114 toggleAll(iterable, shouldAdd) { | 114 toggleAll(iterable, shouldAdd) { |
| 115 if (shouldAdd === void 0) shouldAdd = null; | 115 if (shouldAdd === void 0) shouldAdd = null; |
| 116 iterable[dartx.forEach](dart.fn(e => this.toggle(e, shouldAdd), core.bool,
[core.String])); | 116 iterable[dartx.forEach](dart.fn(e => this.toggle(e, shouldAdd), core.bool,
[core.String])); |
| 117 } | 117 } |
| 118 retainAll(iterable) { | 118 retainAll(iterable) { |
| 119 this.modify(dart.fn(s => s.retainAll(iterable), dart.void, [core.Set$(core
.String)])); | 119 this.modify(dart.fn(s => s.retainAll(iterable), dart.void, [core.Set$(core
.String)])); |
| 120 } | 120 } |
| 121 removeWhere(test) { | 121 removeWhere(test) { |
| 122 this.modify(dart.fn(s => s.removeWhere(test), dart.void, [core.Set$(core.S
tring)])); | 122 this.modify(dart.fn(s => s.removeWhere(test), dart.void, [core.Set$(core.S
tring)])); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 'length', | 257 'length', |
| 258 'first', | 258 'first', |
| 259 'last', | 259 'last', |
| 260 'single' | 260 'single' |
| 261 ]); | 261 ]); |
| 262 dart.defineLazyProperties(CssClassSetImpl, { | 262 dart.defineLazyProperties(CssClassSetImpl, { |
| 263 get _validTokenRE() { | 263 get _validTokenRE() { |
| 264 return core.RegExp.new('^\\S+$'); | 264 return core.RegExp.new('^\\S+$'); |
| 265 } | 265 } |
| 266 }); | 266 }); |
| 267 const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.S
tring, [core.Object])); | |
| 268 function convertDartToNative_SerializedScriptValue(value) { | 267 function convertDartToNative_SerializedScriptValue(value) { |
| 269 return convertDartToNative_PrepareForStructuredClone(value); | 268 return convertDartToNative_PrepareForStructuredClone(value); |
| 270 } | 269 } |
| 271 dart.fn(convertDartToNative_SerializedScriptValue); | 270 dart.fn(convertDartToNative_SerializedScriptValue); |
| 272 function convertNativeToDart_SerializedScriptValue(object) { | 271 function convertNativeToDart_SerializedScriptValue(object) { |
| 273 return convertNativeToDart_AcceptStructuredClone(object, {mustCopy: true}); | 272 return convertNativeToDart_AcceptStructuredClone(object, {mustCopy: true}); |
| 274 } | 273 } |
| 275 dart.fn(convertNativeToDart_SerializedScriptValue); | 274 dart.fn(convertNativeToDart_SerializedScriptValue); |
| 276 class _StructuredClone extends core.Object { | 275 class _StructuredClone extends core.Object { |
| 277 _StructuredClone() { | 276 _StructuredClone() { |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 exports.isImmutableJavaScriptArray = isImmutableJavaScriptArray; | 950 exports.isImmutableJavaScriptArray = isImmutableJavaScriptArray; |
| 952 exports.isJavaScriptPromise = isJavaScriptPromise; | 951 exports.isJavaScriptPromise = isJavaScriptPromise; |
| 953 exports.convertNativePromiseToDartFuture = convertNativePromiseToDartFuture; | 952 exports.convertNativePromiseToDartFuture = convertNativePromiseToDartFuture; |
| 954 exports.wrap_jso = wrap_jso; | 953 exports.wrap_jso = wrap_jso; |
| 955 exports.unwrap_jso = unwrap_jso; | 954 exports.unwrap_jso = unwrap_jso; |
| 956 exports.Device = Device; | 955 exports.Device = Device; |
| 957 exports.FilteredElementList = FilteredElementList; | 956 exports.FilteredElementList = FilteredElementList; |
| 958 exports.Lists = Lists; | 957 exports.Lists = Lists; |
| 959 exports.NodeListWrapper = NodeListWrapper; | 958 exports.NodeListWrapper = NodeListWrapper; |
| 960 }); | 959 }); |
| OLD | NEW |