| OLD | NEW |
| (Empty) |
| 1 # Mutation Observers polyfill | |
| 2 | |
| 3 Mutation Observers provide a way to react to changes in the DOM. This is needed | |
| 4 on IE versions 9 and 10, see <http://caniuse.com/mutationobserver>. | |
| 5 | |
| 6 ## More information | |
| 7 | |
| 8 * [API documentation](http://api.dartlang.org/docs/bleeding_edge/dart_html/Mutat
ionObserver.html) | |
| 9 * [Mozilla Developer Network page](https://developer.mozilla.org/en-US/docs/Web/
API/MutationObserver) | |
| 10 * [Specification](https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#muta
tion-observers) | |
| 11 | |
| 12 ## Getting started | |
| 13 | |
| 14 Include the polyfill in your HTML `<head>`: | |
| 15 | |
| 16 ```html | |
| 17 <script src="packages/mutation_observer/mutation_observer.js"></script> | |
| 18 ``` | |
| 19 | |
| 20 You can also use a minified version for deployment: | |
| 21 | |
| 22 ```html | |
| 23 <script src="packages/mutation_observer/mutation_observer.min.js"></script> | |
| 24 ``` | |
| 25 | |
| 26 ## Getting the source code | |
| 27 | |
| 28 The source for this package is at: | |
| 29 <https://code.google.com/p/dart/source/browse/branches/bleeding_edge/dart/pkg/mu
tation_observer/> | |
| 30 | |
| 31 The original source of the JavaScript code is at: | |
| 32 <https://github.com/Polymer/MutationObservers/tree/master> | |
| 33 | |
| 34 ## Building | |
| 35 | |
| 36 The minified version is produced with: | |
| 37 | |
| 38 ```bash | |
| 39 uglifyjs mutation_observer.js -o mutation_observer.min.js | |
| 40 ``` | |
| 41 | |
| 42 See <https://github.com/mishoo/UglifyJS2> for usage of UglifyJS. | |
| OLD | NEW |