v0.0.20131025 (
release notes) was released on Friday. You can download it from the site or update via Bower.
Known issues
Type-extension custom elements may have broken styles on the host element under the shadow dom polyfill. This will be fixed in the next release.
Changes
As per Daniel's email a few days ago, there are breaking changes that you should be aware of!
- on-* event handlers will now use data binding to function, requiring "{{" and "}}" around the handler name
- Example: <input on-focus="{{ focus }}" on-blur="{{ blur }}" on-change="{{change}}">
- This enables non-bubbling events, and makes for a much simpler event handling paradigm
- The timing of "created" is now at "createdCallback" time, before ShadowDOM creation time. Use "ready" instead
- This is to match the CustomElements spec.
- enteredDocument and leftDocument are removed. Use enteredView and leftView.
-
These have been deprecated by the CustomElements spec, with the new callbacks available since 0.0.20130912
You can update the elements in your project with the following one liner:
find . \( -name "*.html" -o -name "*.js" \) -print0 | xargs -0 perl -pi -E 's{created:}{ready:}g; s{(entered|left)Document:}{\1View:}g; s|on-([\w-]+)="(?!{{)([^"]+)(?!}})"|on-\1="{{\2}}"|g;'
Eric