REFACTOR: `styleCategory` doesn't seem to be used in any way?

This commit is contained in:
Robin Ward 2016-07-04 11:55:29 -04:00
parent 4076b48d3f
commit 6129fda8af
2 changed files with 0 additions and 16 deletions

View File

@ -3,7 +3,6 @@ import computed from 'ember-addons/ember-computed-decorators';
export default Ember.Controller.extend({ export default Ember.Controller.extend({
showTop: true, showTop: true,
showFooter: false, showFooter: false,
styleCategory: null,
@computed @computed
canSignUp() { canSignUp() {

View File

@ -1,15 +0,0 @@
export default Ember.View.extend({
_appendCategoryClass: function(obj, key) {
var newClass = Em.get(obj, key);
if (newClass) {
$('body').addClass('category-' + newClass);
}
}.observes('controller.styleCategory.id'),
_removeOldClass: function(obj, key) {
var oldClass = Em.get(obj, key);
if (oldClass) {
$('body').removeClass('category-' + oldClass);
}
}.observesBefore('controller.styleCategory.id')
});