Commit Graph

23 Commits

Author SHA1 Message Date
sigmund@google.com 87dbee28cc Rolling packages to version 0.4.2
R=jakemac@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41001 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-09 00:41:24 +00:00
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
jakemac@google.com 3a8813b38d add content tag to the js_interop_test element so its content is queryable
update web_components to latest

BUG= http://dartbug.com/20413
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39596 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-27 14:58:13 +00:00
jakemac@google.com 5f94bfb494 Revert "Roll polymer to 0.3.5"
This reverts commit 9923eeb0a39a13926406896a78878237b32fa10e.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39336 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-18 15:59:01 +00:00
jakemac@google.com 82150beb8a Roll polymer to 0.3.5
The following files were not migrated, mostly tests that we don't have an equivalent for (that I could find):

declaration/properties.js
test/html/element-registration.html
test/html/bind-object-repeat.html
test/html/publish-attributes.html

Also, observe.js was not migrated since it no changes looked to be applicable to us, https://github.com/Polymer/observe-js/compare/0.3.4...0.3.5.

BUG= http://dartbug.com/20413
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39330 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-18 14:23:03 +00:00
sigmund@google.com 7eef424ca0 Fix template binding. Turns out that bindCallback by default traps excepions
too, and throws them asynchronously. Our APIs expected those exceptions to be
thrown synchronously.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38761 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 23:05:29 +00:00
sigmund@google.com 727c55a990 Run template binding callbacks in the correct zone
R=jakemac@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38751 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-30 21:22:06 +00:00
sigmund@google.com 7801ac64b9 Roll polymer packages to version 0.3.4
R=jakemac@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38644 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-28 19:57:11 +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
sigmund@google.com 8fe1313443 Fix comment in node bind
R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37795 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-27 19:04:20 +00:00
jmesserly@google.com b6af10c40a update polymer, nodebind, and templatebinding
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37066 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 05:11:14 +00:00
sigmund@google.com 596c3da6ad Enables codegen support in polymer
R=blois@google.com, jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34531 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-28 22:11:28 +00:00
sigmund@google.com c4a107e9e6 Reapply change that makes path-observer more agressive with property lookups.
Additionally fixes template-iterator to be robust in the precense of these
errors.

R=jmesserly@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@34456 260f80e4-7a28-3924-810f-c04153c831b5
2014-03-26 23:04:21 +00:00
jmesserly@google.com ae365d94aa big update to observe, template_binding, polymer
The biggest changes are in pkg:observe where we picked up a lot of optimizations to PathObserver/CompoundObserver.

template_binding gets one-time bindings, synchronous expansion, and lightweight "bindable" objects.

The tests are heavily refactored to use Future instead of the hacky observeTest/performMicrotaskCheckpoint pattern (I have been slowly changing the style for new tests, but observe-js made the change for all of them. yay!). Oh and the performMC stuff is gone from pkg:observe now.

There's also a new pkg:polymer feature for observation, which was ported so we are at a consistent baseline. (http://www.polymer-project.org/polymer.html#observeblock)

R=justinfagnani@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32342 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-05 22:23:00 +00:00
jmesserly@google.com 036d497ed5 work around for https://github.com/Polymer/TemplateBinding/issues/150
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31008 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-10 03:23:17 +00:00
jmesserly@google.com 3c7bece94a restore 30868 and 30873
the only difference from what you already reviewed is the inclusion of:
https://github.com/dart-lang/CustomElements/pull/2

A shame your pull request from 3 months(!) ago hasn't been accepted

(reverts 30875)

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30967 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-06 20:51:20 +00:00
jmesserly@google.com e5b35ae519 Reverting 30868 and 30873.
There's still a problem in document_register_type_extensions_test that isn't obvious. Need more time to investigate.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30875 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 22:51:54 +00:00
jmesserly@google.com 84c98a2902 update TemplateBinding to 119bbab376aa4a8ee96a5354e3ebe84395d1da62
* fixes an issue where not having a sub-template results in incorrect custom element upgrade.

update custom elements to 93a27b791d4bfdddad3be17fccda3c5052bf4a16
* needed to work with the latest TemplateBinding (specifically the importNode fix)

Note that custom elements code is from: https://github.com/dart-lang/CustomElements/pull/1

R=blois@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30868 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-04 20:59:56 +00:00
jmesserly@google.com d93ec94300 fix selected index binding to not count microtasks
https://code.google.com/p/dart/issues/detail?id=13968

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29851 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 22:10:48 +00:00
jmesserly@google.com 33fa4d5eba introduce ObservableList.listChanges to keep list changes separate from property changes
this is part of addressing: 13554, 14157, 13359

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29630 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-31 02:31:50 +00:00
jmesserly@google.com 7b3123e02a Update our TemplateBinding port
https://github.com/Polymer/TemplateBinding/tree/ed3266266e751b5ab1f75f8e0509d0d5f0ef35d8

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29500 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-29 23:26:20 +00:00
jmesserly@google.com 34085ccdb5 port Node.bind to bd0a0591920da9091b326627a46a104a92c7efe7
the first step to fix https://code.google.com/p/dart/issues/detail?id=13950

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29294 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-25 21:39:06 +00:00
jmesserly@google.com 360ea42322 Rename mdv -> template_binding, remove experiemntal apis from dart:html
essentially, we trade off reduce dart:html API surface area for more annoying usage of these APIs. Since Polymer hides most of this, I suspect it won't be too annoying in practice.

Sample usage:

    nodeBind(node).bind(...)

    templateBind(node).model = ...;

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29057 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-23 02:11:49 +00:00