Polymer 0.1.2 - custom element renaming, single-use bindings

52 views
Skip to first unread message

Eric Bidelman

unread,
Jan 10, 2014, 7:27:56 PM1/10/14
to polymer-dev
Polymer 0.1.2 was released yesterday, the first of the year!


Install fresh: bower install polymer
Update your copy: bower update (in your app's directory)

Apart from the continuous element work and bug fixes, the biggest changes are highlighted below.

Custom element renaming

Some of the Custom Element callbacks and APIs were renamed at the spec level. The polyfills and docs have been updated to reflect these changes:

  • document.register-> document.registerElement
  • enteredViewCallback -> attachedCallback
  • leftViewCallback -> detachedCallback

The old names will be supported for a while long.

Single-use bindings

Anywhere you use {{}}, you can now use double brackets ([[]]) and the result will be a one-time binding. Polymer fills this value once.


<div foo="this value is inserted once: [[ obj.value ]]">

One time bindings can potentially be a performance win if you don't need the overhead of setting up property observation.

Other

Vulcanize (build tool)

Updated to 0.1.11 which addresses some bug fixes.
sudo npm install vulcanize -g to update your copy.

Reply all
Reply to author
Forward
0 new messages