| Index: tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
|
| index e989a5e0e9314e49c46baad8710f2873c6a34e43..ceffb5417f9c0f04450fa8b5862fc2f2c429ccd7 100644
|
| --- a/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_MutationObserver.darttemplate
|
| @@ -95,5 +95,15 @@ $if DART2JS
|
| // Call native function with no conversions.
|
| @JSName('observe')
|
| void _call(target, options) native;
|
| +
|
| + static MutationObserver _create(MutationCallback callback) {
|
| + // Dummy statement to mark types as instantiated.
|
| + JS('MutationObserver|MutationRecord', '0');
|
| +
|
| + return JS('MutationObserver',
|
| + 'new(window.MutationObserver||window.WebKitMutationObserver||'
|
| + 'window.MozMutationObserver)(#)',
|
| + convertDartClosureToJS(callback, 2));
|
| + }
|
| $endif
|
| }
|
|
|