Fix bugs in intra-site linking

* Refactor event handling in controllers to use a method to define
  the hash (and thereby allow inheritance)
* Refactor link handling so that links which should be handled by the
  router can be handled by the base class
* Change the router to throw out controllers for pages which aren't
  on-screen (and thereby avoid a lot of weirdness)
This commit is contained in:
Andrew Miner
2015-01-29 13:59:12 -08:00
parent d5140f963d
commit 841af15d5e
13 changed files with 63 additions and 66 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ global.logger = new Logger
switch window.location.hostname
when 'localhost'
global.env = 'development'
logger.level = Logger.DEBUG
logger.level = Logger.INFO
when 'new.crafting-guide.com'
global.env = 'staging'
logger.level = Logger.VERBOSE