OLD | NEW |
1 static MutationObserver _create(MutationCallback callback) { | 1 static MutationObserver _create(MutationCallback callback) { |
2 // Dummy statement to mark types as instantiated. | 2 // Dummy statement to mark types as instantiated. |
3 JS('MutationObserver|MutationRecord', '0'); | 3 JS('MutationObserver|MutationRecord', '0'); |
4 | 4 |
5 return JS('MutationObserver', | 5 return JS('MutationObserver', |
6 'new(window.MutationObserver||window.WebKitMutationObserver||' | 6 'new(window.MutationObserver||window.WebKitMutationObserver||' |
7 'window.MozMutationObserver)(#)', | 7 'window.MozMutationObserver)(#)', |
8 convertDartClosureToJS(callback, 2)); | 8 convertDartClosureToJS(callback, 2)); |
9 } | 9 } |
OLD | NEW |