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 part of html; | 5 part of html; |
6 | 6 |
7 /// @domName $DOMNAME | 7 @DomName("$DOMNAME") |
8 @SupportedBrowser(SupportedBrowser.CHROME) | 8 @SupportedBrowser(SupportedBrowser.CHROME) |
9 @SupportedBrowser(SupportedBrowser.FIREFOX) | 9 @SupportedBrowser(SupportedBrowser.FIREFOX) |
10 @SupportedBrowser(SupportedBrowser.SAFARI) | 10 @SupportedBrowser(SupportedBrowser.SAFARI) |
11 @Experimental() | 11 @Experimental() |
12 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 12 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
13 $!MEMBERS | 13 $!MEMBERS |
14 /** | 14 /** |
15 * Checks to see if the mutation observer API is supported on the current | 15 * Checks to see if the mutation observer API is supported on the current |
16 * platform. | 16 * platform. |
17 */ | 17 */ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Dummy statement to mark types as instantiated. | 100 // Dummy statement to mark types as instantiated. |
101 JS('MutationObserver|MutationRecord', '0'); | 101 JS('MutationObserver|MutationRecord', '0'); |
102 | 102 |
103 return JS('MutationObserver', | 103 return JS('MutationObserver', |
104 'new(window.MutationObserver||window.WebKitMutationObserver||' | 104 'new(window.MutationObserver||window.WebKitMutationObserver||' |
105 'window.MozMutationObserver)(#)', | 105 'window.MozMutationObserver)(#)', |
106 convertDartClosureToJS(callback, 2)); | 106 convertDartClosureToJS(callback, 2)); |
107 } | 107 } |
108 $endif | 108 $endif |
109 } | 109 } |
OLD | NEW |