Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
misfir3 committed Dec 2, 2015
1 parent d4af09c commit 0628a27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ define(['jquery',
};

this.loadLesson = function(scr,menu,stage,num) {
console.log("Loading a lesson, scr: " + scr + ", menu: " + menu + ", stage: " + stage + ", num: " + num);
this.titleView = new TitleView();
this.helpsLoaded = {};
if (typeof(scr) == "undefined") {
Expand Down Expand Up @@ -85,7 +84,6 @@ define(['jquery',
};

this.onInfoLoaded = function() {
console.log("Lesson info loaded")
this.helpControlsView = new HelpControlsView({
hasPlan:this.lessonInfoModel.get('hasPlan'),
hasSolution:this.lessonInfoModel.get('hasSolution'),
Expand All @@ -105,7 +103,6 @@ define(['jquery',
};

this.onContentLoaded = function(loadHelps) {
console.log("Lesson content loaded")
this.lessonInfoModel = new LessonInfoModel();
this.listenTo(this.lessonInfoModel,'info:loaded',this.onInfoLoaded);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ define(['jquery',
//var id =
return lessonName.replace(/\s|\(|\)|\!|\:|\;|\@|\#|\$|\%|\^|\&|\*/g, '');
},

addMenuClasses: function(arr) {
for (var i = 0; i < arr.length; i++) {
var menuItem = arr[i];
Expand Down Expand Up @@ -46,7 +47,8 @@ define(['jquery',
if (show) {
$('#' + id).show();
} else {
a }

}
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ define(['jquery',
goatRouter.on('route:attackRoute', function(scr,menu,stage,num) {
this.lessonController.loadLesson(scr,menu,stage,num);
this.menuController.updateMenu(scr,menu);
//update menu
});
goatRouter.on('route:welcomeRoute', function() {
this.lessonController.loadWelcome();
});
goatRouter.on("route", function(route, params) {
console.log("Got a route event: " + route + ", params: " + params);

});

Backbone.history.start();
Expand Down

0 comments on commit 0628a27

Please sign in to comment.