Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: pkg/mutation_observer/README.md

Issue 21109007: add mutation observer polyfill package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix pubspec Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/custom_element/test/custom_element_test.dart ('k') | pkg/mutation_observer/lib/mutation_observer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ea4f66a0d45c8921295322182fd23315c8b5e482
--- /dev/null
+++ b/pkg/mutation_observer/README.md
@@ -0,0 +1,42 @@
+# Mutation Observers polyfill
+
+Mutation Observers provide a way to react to changes in the DOM. This is needed
+on IE versions 9 and 10, see <http://caniuse.com/mutationobserver>.
+
+## 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.js"></script>
+```
+
+You can also use a minified version for deployment:
+
+```html
+ <script src="packages/mutation_observer/mutation_observer.min.js"></script>
+```
+
+## 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>
+
+## Building
+
+The minified version is produced with:
+
+```bash
+ uglifyjs mutation_observer.js -o mutation_observer.min.js
+```
+
+See <https://github.com/mishoo/UglifyJS2> for usage of UglifyJS.
« no previous file with comments | « pkg/custom_element/test/custom_element_test.dart ('k') | pkg/mutation_observer/lib/mutation_observer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698