Skip to content

Releases: Serabe/ember-bind-helper

v1.0.0 Static line

08 Mar 16:57
Compare
Choose a tag to compare

First stable version of ember-bind-helper. Now with 100% less runloop.

PLEASE, DO NOT UPGRADE IF YOU ARE IN AN EMBER VERSION OLDER THAN 3.4

Sandcastles in the Sand

01 Dec 11:06
Compare
Choose a tag to compare

Our beloved bind helper now supports named arguments with Sparkles Components. That's the only difference. Thanks to @gossi for the report.

Internally, Ember CLI has been updated to ~3.5 and tests has been updated (mainly because I could not remember how to write tests in that format).

https://www.youtube.com/watch?v=mCAiBmA_bK8

Why the rapid patch version?

Because I hadn't taken my coffee and was releasing 0.2.0 all over again. Twice.

Remember to take your first coffee before publishing to npm, children.

Abuelo cebolleta out.

Reborn

10 Aug 16:59
Compare
Choose a tag to compare

This release changes the API completely and improves it thanks to the work of @mmun and @rwjblue.

Previous API accepted two positional parameters: the method and the context.

Current API is much more concise in the general case, while still allowing for selecting a totally custom target.

Now, {{bind model.submodel.method}} will automatically detect model.submodel as the target. In case you want a custom target, just pass it as a named parameter: {{bind model.submodel.method target=otherModel}}.

Beware that if the passed function path is similar to model.actions.method, the target will be just model and not model.actions.

Another improvement is that it now accepts extra positional parameters that will be passed to Ember.run.bind.

Finally, I would like to thank @mmun and @rwjblue.