-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
yield from the template #72
Conversation
#51. I believe this is already a feature, where you can swap in your own template. |
I think it would be nice to Yield from the template - but we should remove the loadingText if there's a block given. i thiiiiink the syntax is like
|
The correct property is ... and done |
Thanks @davidgoli - can we get a lil' test for this? |
@hhff sure - mind if I add the |
@hhff Test added. Note that I had to revert to the old-style |
@davidgoli - if you merge from master this guy should be passing |
Also - can we please add a short description of how to use this to the README ? |
@hhff Merged, fixed, and README updated. |
awesome - can you squash this? |
Squash it? I don't think I have merge permission, if that's what you mean. |
Oh i just mean squash the commits @davidgoli https://robots.thoughtbot.com/git-interactive-rebase-squash-amend-rewriting-history We just do this so the Changelog is super clean and clear :) |
@hhff how does this look? |
looks great! Is there a deprecation warning when using the |
oh yeah I think so... in reality, it means the same thing as |
ie, create a helper, or what? |
I'd say the move is to use We're already using it in the |
Looks like that's not quite as easy for the Component case, since hasBlock is a helper not a component property. Fortunately, there's an officially-endorsed polyfill solution: emberjs/ember.js#11430 (comment) |
Yeah that's passing ember-1.12, ember-1.13, ember-release, and ember-canary locally. Only question is where to put the polyfill. |
import emberVersionIs from 'ember-version-is'; | ||
|
||
if (emberVersionIs('lessThan', '1.13.0')) { | ||
Ember.Component.reopen({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to effect all components in the host application. Could we do it in the extend call below somehow instead? I don't want to effect the rest of a developer's application. Worse comes to worse - we could do the reopen before the export just on the infinity-loader
Thanks @davidgoli !
@hhff isolated the changes to only this component. Please take another look. |
yield from blueprint, with blockGiven do the same for the app/templates template use hasBlock instead use old-style template helper use template helper in blueprint as well update README with instructions add additional check for hasBlock to pass 2.0+
whoops, forgot to |
THE MAN! thankyou @davidgoli ! |
Published: |
Previously, the only possible loading indicators were
loadingText
and a CSS background image. This gives a much bigger range of possibilities, such as CSS animations with custom markup.