Commit Graph

2 Commits

Author SHA1 Message Date
jakemac@google.com 589c718ac0 update polymer js to 0.4.0
BUG= http://dartbug.com/20809

The following files were not migrated, they used to be in platform.js
and are like polyfills, but are adding non-html spec functionality used
by polymer:

src/declaration/mdv.js
src/declaration/polymer.js
src/declaration/queue.js
src/declaration/styles.js
src/lib/dom.js
src/lib/lang.js
src/lib/loader.js
src/lib/styleloader.js
src/lib/url.js
src/system/compat.js
src/system/microtask.js
src/system/module.js
src/system/patches-mdv.js
src/system/unresolved.js

The following tests were not migrated. For the most part they are just
testing the features added by the files above:

test/html/loader-deduplicate.html
test/html/mdv-shadow.html
test/html/mdv-tests/polymer-expressions-tests.js
test/html/styling/recursive-style-import.html
test/html/url.html
test/js/bindMDV.js
test/js/oop.js
test/html/styling/rules/*
test/js/styling.js
test/js/register.js
test/js/utils.js
test/html/template-repeat-wrappers.html

R=sigmund@google.com

Review URL: https://codereview.chromium.org//558673004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40120 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-10 21:41:47 +00:00
jmesserly@google.com 08529e98d8 Switch Node.bind to interop. This allows JS elements to work properly with Dart binding paths for things that are not JSON serializable.
Two big things this enables:
* elements themselves can be data bound
* anything jsify can handle, including Dart functions. This means as we get @Export and such, it will be possible to bind those Dart types directly into JS elements. With that we can make things like <core-style> much nicer to use.

This also removes ported code from https://github.com/Polymer/NodeBind except for interfaces, since we don't need it anymore.

Added a Polymer test to verify it works for the typical end-to-end case. This uncovered the "deliver" method that needs to be there on Bindable.

Finally one Node.bind test depends on https://github.com/Polymer/ShadowDOM/pull/462, which fixes an issue where SD polyfill doesn't wrap an API used by Node.bind. Apparently no one has ever hit this on the JS side (the Dart port was immune, because our treatment of HTMLCollection is better).

R=sigmund@google.com

Review URL: https://codereview.chromium.org//355133002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38051 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-08 04:57:28 +00:00