remove loging and test function

This commit is contained in:
jelhan 2014-04-18 03:03:53 +02:00
parent f6e5905e1a
commit 8dfab4c812

View file

@ -321,9 +321,7 @@ App.CreateOptionsController = Ember.ObjectController.extend({
saveOptions: function() { saveOptions: function() {
var options = this.get('model.options'), var options = this.get('model.options'),
newOptions = []; newOptions = [];
console.log(options);
// remove options without value // remove options without value
options.forEach(function(option) { options.forEach(function(option) {
if (option.title !== '') { if (option.title !== '') {
@ -345,12 +343,7 @@ App.CreateOptionsController = Ember.ObjectController.extend({
// redirect to CreateSettings // redirect to CreateSettings
this.transitionToRoute('create.settings'); this.transitionToRoute('create.settings');
} }
}, }
test: function(){
console.log('is triggered');
console.log(this.get('options'));
}.observes('options')
}); });
App.CreateSettingsController = Ember.ObjectController.extend({ App.CreateSettingsController = Ember.ObjectController.extend({