| 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 part of dart.dom.html; | 5 part of dart.dom.html; |
| 6 | 6 |
| 7 _callConstructor(constructor, interceptor) { | 7 _callConstructor(constructor, interceptor) { |
| 8 return (receiver) { | 8 return (receiver) { |
| 9 setNativeSubclassDispatchRecord(receiver, interceptor); | 9 setNativeSubclassDispatchRecord(receiver, interceptor); |
| 10 | 10 |
| 11 // Mirrors uses the constructor property to cache lookups, so we need it to |
| 12 // be set correctly, including on IE where it is not automatically picked |
| 13 // up from the __proto__. |
| 14 JS('', '#.constructor = #.__proto__.constructor', receiver, receiver); |
| 11 return JS('', '#(#)', constructor, receiver); | 15 return JS('', '#(#)', constructor, receiver); |
| 12 }; | 16 }; |
| 13 } | 17 } |
| 14 | 18 |
| 15 _callEnteredView(receiver) { | 19 _callEnteredView(receiver) { |
| 16 return receiver.enteredView(); | 20 return receiver.enteredView(); |
| 17 } | 21 } |
| 18 | 22 |
| 19 _callLeftView(receiver) { | 23 _callLeftView(receiver) { |
| 20 return receiver.leftView(); | 24 return receiver.leftView(); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 JS('=Object', '#.extends = #', options, extendsTagName); | 121 JS('=Object', '#.extends = #', options, extendsTagName); |
| 118 } | 122 } |
| 119 | 123 |
| 120 JS('void', '#.registerElement(#, #)', document, tag, options); | 124 JS('void', '#.registerElement(#, #)', document, tag, options); |
| 121 } | 125 } |
| 122 | 126 |
| 123 //// Called by Element.created to do validation & initialization. | 127 //// Called by Element.created to do validation & initialization. |
| 124 void _initializeCustomElement(Element e) { | 128 void _initializeCustomElement(Element e) { |
| 125 // TODO(blois): Add validation that this is only in response to an upgrade. | 129 // TODO(blois): Add validation that this is only in response to an upgrade. |
| 126 } | 130 } |
| OLD | NEW |