| 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 /** | 5 /** |
| 6 * Checks to see if the mutation observer API is supported on the current | 6 * Checks to see if the mutation observer API is supported on the current |
| 7 * platform. | 7 * platform. |
| 8 */ | 8 */ |
| 9 bool _isMutationObserverSupported() native ''' | 9 bool _isMutationObserverSupported() => |
| 10 return !!( window.MutationObserver || window.WebKitMutationObserver); | 10 JS('bool', '!!(window.MutationObserver || window.WebKitMutationObserver)'); |
| 11 '''; | |
| OLD | NEW |