From 6ad8050840a37ab9bf17f8ec709b7ebe0b6a11e2 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 26 Feb 2015 12:47:04 +1030 Subject: [PATCH] =?UTF-8?q?Missed=20some=20create=E2=86=92extend=20changes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/core/ember/app/components/ui/alert-message.js | 4 ++-- framework/core/ember/app/views/application.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/core/ember/app/components/ui/alert-message.js b/framework/core/ember/app/components/ui/alert-message.js index 09f9d279d..24872757c 100755 --- a/framework/core/ember/app/components/ui/alert-message.js +++ b/framework/core/ember/app/components/ui/alert-message.js @@ -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'); } diff --git a/framework/core/ember/app/views/application.js b/framework/core/ember/app/views/application.js index 3ce3d7d6e..c000949e1 100644 --- a/framework/core/ember/app/views/application.js +++ b/framework/core/ember/app/views/application.js @@ -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'}); } },