Missed some create→extend changes

This commit is contained in:
Toby Zerner 2015-02-26 12:47:04 +10:30
parent 701f27747a
commit 6ad8050840
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ export default Ember.Component.extend(HasItemLists, {
var component = this;
this.get('buttons').forEach(function(button) {
controls.pushObject(ActionButton.create({
controls.pushObject(ActionButton.extend({
label: button.label,
action: function() {
component.send('dismiss');
@ -36,7 +36,7 @@ export default Ember.Component.extend(HasItemLists, {
});
if (this.get('dismissable')) {
var dismiss = ActionButton.create({
var dismiss = ActionButton.extend({
icon: 'times',
className: 'btn btn-icon btn-link',
action: function() { component.send('dismiss'); }

View File

@ -74,8 +74,8 @@ export default Ember.View.extend(HasItemLists, {
logout: function() { controller.send('invalidateSession'); }
}), 'user');
} else {
this.addActionItem(items, 'signup', 'Sign Up').set('className', 'btn btn-link');
this.addActionItem(items, 'login', 'Log In').set('className', 'btn btn-link');
this.addActionItem(items, 'signup', 'Sign Up').reopen({className: 'btn btn-link'});
this.addActionItem(items, 'login', 'Log In').reopen({className: 'btn btn-link'});
}
},