| OLD | NEW |
| 1 dart_library.library('dart/js', null, /* Imports */[ | 1 dart_library.library('dart/js', null, /* Imports */[ |
| 2 'dart/_runtime', | 2 'dart/_runtime', |
| 3 'dart/core', | 3 'dart/core', |
| 4 'dart/collection', | 4 'dart/collection', |
| 5 'dart/_js_helper' | 5 'dart/_js_helper' |
| 6 ], /* Lazy imports */[ | 6 ], /* Lazy imports */[ |
| 7 ], function(exports, dart, core, collection, _js_helper) { | 7 ], function(exports, dart, core, collection, _js_helper) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 let dartx = dart.dartx; | 9 let dartx = dart.dartx; |
| 10 const _global = dart.global; | 10 const _global = dart.global; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 static _convertDataTree(data) { | 42 static _convertDataTree(data) { |
| 43 let _convertedObjects = collection.HashMap.identity(); | 43 let _convertedObjects = collection.HashMap.identity(); |
| 44 function _convert(o) { | 44 function _convert(o) { |
| 45 if (dart.notNull(_convertedObjects.containsKey(o))) { | 45 if (dart.notNull(_convertedObjects.containsKey(o))) { |
| 46 return _convertedObjects.get(o); | 46 return _convertedObjects.get(o); |
| 47 } | 47 } |
| 48 if (dart.is(o, core.Map)) { | 48 if (dart.is(o, core.Map)) { |
| 49 let convertedMap = {}; | 49 let convertedMap = {}; |
| 50 _convertedObjects.set(o, convertedMap); | 50 _convertedObjects.set(o, convertedMap); |
| 51 for (let key of o.keys) { | 51 for (let key of o[dartx.keys]) { |
| 52 convertedMap[key] = _convert(o.get(key)); | 52 convertedMap[key] = _convert(o[dartx.get](key)); |
| 53 } | 53 } |
| 54 return convertedMap; | 54 return convertedMap; |
| 55 } else if (dart.is(o, core.Iterable)) { | 55 } else if (dart.is(o, core.Iterable)) { |
| 56 let convertedList = []; | 56 let convertedList = []; |
| 57 _convertedObjects.set(o, convertedList); | 57 _convertedObjects.set(o, convertedList); |
| 58 convertedList[dartx.addAll](o[dartx.map](_convert)); | 58 convertedList[dartx.addAll](o[dartx.map](_convert)); |
| 59 return convertedList; | 59 return convertedList; |
| 60 } else { | 60 } else { |
| 61 return _convertToJS(o); | 61 return _convertToJS(o); |
| 62 } | 62 } |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 } | 403 } |
| 404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); | 404 dart.fn(allowInteropCaptureThis, core.Function, [core.Function]); |
| 405 // Exports: | 405 // Exports: |
| 406 exports.JsObject = JsObject; | 406 exports.JsObject = JsObject; |
| 407 exports.JsFunction = JsFunction; | 407 exports.JsFunction = JsFunction; |
| 408 exports.JsArray$ = JsArray$; | 408 exports.JsArray$ = JsArray$; |
| 409 exports.JsArray = JsArray; | 409 exports.JsArray = JsArray; |
| 410 exports.allowInterop = allowInterop; | 410 exports.allowInterop = allowInterop; |
| 411 exports.allowInteropCaptureThis = allowInteropCaptureThis; | 411 exports.allowInteropCaptureThis = allowInteropCaptureThis; |
| 412 }); | 412 }); |
| OLD | NEW |