| Index: lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate
|
| diff --git a/lib/dom/templates/dom/dummy/factoryprovider.darttemplate b/lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate
|
| similarity index 51%
|
| copy from lib/dom/templates/dom/dummy/factoryprovider.darttemplate
|
| copy to lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate
|
| index 68fc08702ba52cba199fe40319ffa1fdf1549381..4fb016ca2c6d73b3effbdf457d1f942428a9fca0 100644
|
| --- a/lib/dom/templates/dom/dummy/factoryprovider.darttemplate
|
| +++ b/lib/dom/templates/html/frog/factoryprovider_MutationObserver.darttemplate
|
| @@ -3,5 +3,10 @@
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| class $FACTORYPROVIDER {
|
| - factory $CONSTRUCTOR($PARAMETERS) => _dummy();
|
| + factory $CONSTRUCTOR(MutationCallback callback) native '''
|
| + var constructor =
|
| + window.WebKitMutationObserver || window.MozMutationObserver ||
|
| + window.MutationObserver;
|
| + return new constructor(callback);
|
| + ''';
|
| }
|
|
|