Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Mutation Observers polyfill | |
| 2 | |
| 3 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.
| |
| 4 | |
| 5 ## More information | |
| 6 | |
| 7 * [API documentation](http://api.dartlang.org/docs/bleeding_edge/dart_html/Mutat ionObserver.html) | |
| 8 * [Mozilla Developer Network page](https://developer.mozilla.org/en-US/docs/Web/ API/MutationObserver) | |
| 9 * [Specification](https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#muta tion-observers) | |
| 10 | |
| 11 ## Getting started | |
| 12 | |
| 13 Include the polyfill in your HTML `<head>`: | |
| 14 | |
| 15 ```html | |
| 16 <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
| |
| 17 ``` | |
| 18 | |
| 19 You can also use a minified version for deployment: | |
| 20 | |
| 21 ```html | |
| 22 <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
| |
| 23 ``` | |
| 24 | |
| 25 ## Getting the source code | |
| 26 | |
| 27 The source for this package is at: | |
| 28 <https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/pkg/mu tation_observer/> | |
| 29 | |
| 30 The original source of the JavaScript code is at: | |
| 31 <https://github.com/Polymer/MutationObservers/tree/master> | |
| OLD | NEW |