REFACTOR: `styleCategory` doesn't seem to be used in any way?
This commit is contained in:
parent
4076b48d3f
commit
6129fda8af
|
@ -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() {
|
||||||
|
|
|
@ -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')
|
|
||||||
});
|
|
Loading…
Reference in New Issue