We are pleased to announce that both Ember.js 1.4.0 and the first beta in the 1.5 serieshave just been released. This comes as the fourth cycle of our six-week releaseprocess that began just after 1.0 was released.
Scrapbook.com is excited to present our exclusive line of Digital Cut Files for electronic die cutting machines! These beautiful, versatile files were designed to make your scrapbook layouts, Traveler's Notebook pages, journal entries, handmade cards, and home decor projects come alive! Sale Embossing Ink Pad 5 stars (1) was: $11.99 now: $7.20 Quick view Hammered Mixed Media Powder 1 5 stars 5 (1) price $6.99 We’re sorry! This product has been discontinued. We are pleased to announce that both Ember.js 1.4.0 and the first beta in the 1.5 series have just been released. This comes as the fourth cycle of our six-week release process that began just after 1.0 was released. New features in 1.4 Property Brace Expansion. Note: If you are using macOS 10.12 Sierra, you should continue to use Ember 1.8.5. Download Ember 2: The alpha of Ember 2 with all the usual caveats that come with running in-development software, main library management and annotations tools are working fine. This Alpha does not represent the final version of Ember 2, the UI and feature set.
New features in 1.4
Property Brace Expansion
In prior versions of Ember if you wanted to observe both
foo
and bar
on baz
you would need to setup both baz.foo
and baz.bar
as dependent keys.With the new property brace expansion, you could setup the computed properties dependenciesinstead like:
This allows much less duplication/redundancy when your dependent keys are mostly similar.
See the original PR #3538 for more details.
Ember.run.bind
![Ember 1 5 1 – versatile digital scrapbook paper Ember 1 5 1 – versatile digital scrapbook paper](https://9to5mac.com/wp-content/uploads/sites/6/2013/07/screen-shot-2013-07-18-at-8-31-50-pm.png)
Ember.run.bind
provides a useful utility when integrating with non-Ember librariesthat provide asynchronous callbacks.Ember utilizes a run-loop to batch and coalesce changes. This works bymarking the start and end of Ember-related JavaScript execution.
When using events such as a View's click handler, Ember wraps the eventhandler in a run-loop, but when integrating with non-Ember libraries thiscan be tedious. Pins the bookmarks app 2 1 2 download free.
For example, the following is rather verbose but is the correct way to combinethird-party events and Ember code.
To reduce the boilerplate, the following can be used to construct arun-loop-wrapped callback handler.
Ember 1 5 1 – Versatile Digital Scrapbooking
For more details please reference the recently added run-loop guide(much thanks to Brendan Briggs).
With Controller
The
{{with}}
helper can now accept a controller
option. Adding controller='something'
instructs the {{with}}
helper to create and use an instance of the specified controllerwith the new context as its content.This is very similar to using the
itemController
option with the {{each}}
helper.In the above example, the template provided to the
{{with}}
block is now wrapped in theuserBlogPost
controller, which provides a very elegant way to decorate the context with customfunctions/properties. Pdf plus 1 2.Lazily Bound Attributes
Previously, every attribute that was bound added some degree of cost (mostly associated with maintainingthe bindings/observers themselves). This lead us to limit the list of attributes that were automaticallybound for
Ember.TextField
, Ember.TextArea
, and friends. This is a common source of frustration asmore and more people want to bind to HTML5 attributes, but find that to do so they must reopen theEmber.TextField
class and add the attributes they need.This might look like: Markdownd 3 7 – full featured markdown editor.
Then from the template:
This certainly is not ideal, and causes many issues for people that expect it to 'just work'.
Thankfully, this has gotten MUCH better with the 1.4 release. In 1.4 any attribute bindings that do notexist at the time the view is first rendered will not have observers setup (therefore removing the originalperformance concern), but if/when the attribute is set on the view later (after the first render) an observeris setup at that time.
This means that we are only creating observers for actual properties that are present, but we can list everyvalid HTML attribute in the
attributeBindings
property so that you can simply use them without having to reopeninternal classes.Ember 1 5 1 – Versatile Digital Scrapbook Paper
As of Ember 1.4 you should be able to use any HTML5 attribute with
{{input type='text'}}
, {{textarea}}
, and{{checkbox}}
.Other Improvements
As usual, there are a ton of bug fixes and small improvements in thisrelease. You can see a list of all the changes in the CHANGELOG: