Added the else statement. This can be used to make pull request more advanced.

This commit is contained in:
GlenDC 2014-01-19 14:08:32 +01:00
parent 1f486c3cb6
commit abbd576b4d

View file

@ -44,6 +44,8 @@ module.exports = class HomeView extends View
href[href.length-1] = lastLevel if href.length isnt 0
href = href.join("/")
playLink.attr("href", href)
else
console.log("TODO: Insert here code to get latest level played from the database. If this can't be found, we just let the user play the first level.")
initCanvas: =>
@stage = new createjs.Stage($('#beginner-campaign canvas', @$el)[0])