Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HTMLBars to 0.13.15. #11033

Merged
merged 2 commits into from
May 6, 2015
Merged

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented May 6, 2015

Fixes #11032.
Closes #11028.

ef4 and others added 2 commits May 5, 2015 20:31
A longstanding pattern is to use helpers to simulate components with
positional parameters. But under Glimmer, helpers are pure functions, so
this doesn't work anymore.

Thankfully, we can do something even better, which is to stop wrapping
components in helpers just to get positional params, and instead make
components that can natively accept positional params. That's what this
PR does.

To use, you define your component like:

```js
Ember.Component.extend({
  positionalParams: ['name', 'city']
});
```

Then you can invoke it like:

```handlebars
{{my-component "Ed" "Somerville"}}
```

Which is equivalent to:

```handlebars
{{my-component name="Ed" city="Somerville"}}
```

(cherry picked from commit f0d28c2)
rwjblue added a commit that referenced this pull request May 6, 2015
@rwjblue rwjblue merged commit f29a21b into emberjs:master May 6, 2015
@rwjblue rwjblue deleted the fix-element-morphs branch May 6, 2015 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ElementMorph does not have clear/destroy methods.
8 participants