| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 5 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 6 $!MEMBERS | 6 $!MEMBERS |
| 7 void observe(Node target, | 7 void observe(Node target, |
| 8 [Map options, | 8 [Map options, |
| 9 bool childList, | 9 bool childList, |
| 10 bool attributes, | 10 bool attributes, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 $if DARTIUM | 60 $if DARTIUM |
| 61 static _createDict() => {}; | 61 static _createDict() => {}; |
| 62 static _add(m, String key, value) { m[key] = value; } | 62 static _add(m, String key, value) { m[key] = value; } |
| 63 static _fixupList(list) => list; | 63 static _fixupList(list) => list; |
| 64 | 64 |
| 65 _call(Node target, options) { | 65 _call(Node target, options) { |
| 66 _observe(target, options); | 66 _observe(target, options); |
| 67 } | 67 } |
| 68 $endif | 68 $endif |
| 69 | 69 |
| 70 $if FROG | 70 $if DART2JS |
| 71 static _createDict() => JS('var', '{}'); | 71 static _createDict() => JS('var', '{}'); |
| 72 static _add(m, String key, value) { JS('void', '#[#] = #', m, key, value); } | 72 static _add(m, String key, value) { JS('void', '#[#] = #', m, key, value); } |
| 73 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array. | 73 static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array. |
| 74 | 74 |
| 75 // Call native function with no conversions. | 75 // Call native function with no conversions. |
| 76 _call(target, options) native 'observe'; | 76 _call(target, options) native 'observe'; |
| 77 $endif | 77 $endif |
| 78 } | 78 } |
| OLD | NEW |