Chromium Code Reviews| Index: pkg/mutation_observer/README.md |
| diff --git a/pkg/mutation_observer/README.md b/pkg/mutation_observer/README.md |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..df7d9d07900a410dc6471d9fe5107f182ade34f6 |
| --- /dev/null |
| +++ b/pkg/mutation_observer/README.md |
| @@ -0,0 +1,31 @@ |
| +# Mutation Observers polyfill |
| + |
| +Mutation Observers provide a way to react to changes in the DOM. |
|
blois
2013/07/30 17:11:09
Maybe a comment as to what platforms need this (IE
Jennifer Messerly
2013/07/30 18:05:20
Done.
|
| + |
| +## More information |
| + |
| +* [API documentation](http://api.dartlang.org/docs/bleeding_edge/dart_html/MutationObserver.html) |
| +* [Mozilla Developer Network page](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver) |
| +* [Specification](https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#mutation-observers) |
| + |
| +## Getting started |
| + |
| +Include the polyfill in your HTML `<head>`: |
| + |
| +```html |
| + <script src="packages/mutation_observer/mutation_observer.debug.js"></script> |
|
Siggi Cherem (dart-lang)
2013/07/30 16:44:47
seems like there is no 'debug' in our package?
blois
2013/07/30 17:11:09
Convention is usually filename.js for debug and fi
|
| +``` |
| + |
| +You can also use a minified version for deployment: |
| + |
| +```html |
| + <script src="packages/mutation_observer/mutation_observer.min.js"></script> |
|
Siggi Cherem (dart-lang)
2013/07/30 16:44:47
seems that the 'min' file is missing, should we su
|
| +``` |
| + |
| +## Getting the source code |
| + |
| +The source for this package is at: |
| +<https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/pkg/mutation_observer/> |
| + |
| +The original source of the JavaScript code is at: |
| +<https://github.com/Polymer/MutationObservers/tree/master> |