| OLD | NEW | 
|---|
| 1 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 library polymer.polymer_element; | 5 library polymer.polymer_element; | 
| 6 | 6 | 
| 7 import 'dart:async'; | 7 import 'dart:async'; | 
| 8 import 'dart:html'; | 8 import 'dart:html'; | 
| 9 import 'dart:mirrors'; | 9 import 'dart:mirrors'; | 
| 10 import 'dart:js' as dartJs; | 10 import 'dart:js' as dartJs; | 
| 11 | 11 | 
| 12 import 'package:custom_element/custom_element.dart'; | 12 import 'package:custom_element/custom_element.dart'; | 
| 13 import 'package:js/js.dart' as js; | 13 import 'package:js/js.dart' as js; | 
| 14 import 'package:mdv/mdv.dart' show NodeBinding; | 14 import 'package:mdv/mdv.dart' show NodeBinding; | 
| 15 import 'package:observe/observe.dart'; | 15 import 'package:observe/observe.dart'; | 
| 16 import 'package:observe/src/microtask.dart'; | 16 import 'package:observe/src/microtask.dart'; | 
| 17 import 'package:polymer_expressions/polymer_expressions.dart'; | 17 import 'package:polymer_expressions/polymer_expressions.dart'; | 
| 18 | 18 | 
| 19 import 'src/utils_observe.dart' show toCamelCase, toHyphenedName; | 19 import 'src/utils.dart' show toCamelCase, toHyphenedName; | 
| 20 | 20 | 
| 21 /** | 21 /** | 
| 22  * Registers a [PolymerElement]. This is similar to [registerCustomElement] | 22  * Registers a [PolymerElement]. This is similar to [registerCustomElement] | 
| 23  * but it is designed to work with the `<element>` element and adds additional | 23  * but it is designed to work with the `<element>` element and adds additional | 
| 24  * features. | 24  * features. | 
| 25  */ | 25  */ | 
| 26 void registerPolymerElement(String localName, PolymerElement create()) { | 26 void registerPolymerElement(String localName, PolymerElement create()) { | 
| 27   registerCustomElement(localName, () => create().._initialize(localName)); | 27   registerCustomElement(localName, () => create().._initialize(localName)); | 
| 28 } | 28 } | 
| 29 | 29 | 
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 555   'onKeyMessage': MediaElement.keyMessageEvent, | 555   'onKeyMessage': MediaElement.keyMessageEvent, | 
| 556   'onNeedKey': MediaElement.needKeyEvent, | 556   'onNeedKey': MediaElement.needKeyEvent, | 
| 557   'onWebGlContextLost': CanvasElement.webGlContextLostEvent, | 557   'onWebGlContextLost': CanvasElement.webGlContextLostEvent, | 
| 558   'onWebGlContextRestored': CanvasElement.webGlContextRestoredEvent, | 558   'onWebGlContextRestored': CanvasElement.webGlContextRestoredEvent, | 
| 559   'onPointerLockChange': Document.pointerLockChangeEvent, | 559   'onPointerLockChange': Document.pointerLockChangeEvent, | 
| 560   'onPointerLockError': Document.pointerLockErrorEvent, | 560   'onPointerLockError': Document.pointerLockErrorEvent, | 
| 561   'onReadyStateChange': Document.readyStateChangeEvent, | 561   'onReadyStateChange': Document.readyStateChangeEvent, | 
| 562   'onSelectionChange': Document.selectionChangeEvent, | 562   'onSelectionChange': Document.selectionChangeEvent, | 
| 563   'onSecurityPolicyViolation': Document.securityPolicyViolationEvent, | 563   'onSecurityPolicyViolation': Document.securityPolicyViolationEvent, | 
| 564 }; | 564 }; | 
| OLD | NEW | 
|---|