chorus-frogs-2014/SafeRoute — pull request #38 by scottjason (2014-07-30 06:16:01+00:00)
Title: Refactor V3 Complete, Sped-Up App, Ajax OnLoad, Naming Conventions

** Fixed error in one of the names.
** This requires that you are running a virtual server (can't run local with geolocation feature). See my email on MAMP.

-- Completed Refactored V3 --

init.js only instanties the MasterController and all it's dependencies. Everything else is scoped to and initialized in the MasterController.

Crimes AJAX request now happens on page load. To cover this (in case a user wants their info before it's available), the application is prevented from running until it verifies the ajax request data is there. That said, this is unlikely to happen since the point of doing the ajax request on page load is to speed things up. So the site is much faster now.

The AJAX request is now specific to only the data we need.

Created a users widget. The code to retrieve the geolocation for the user is now properly decoupled and implemented into the design of the application.

Removed duplicate instantiations where possible and unnecessary dependencies.

Renamed variables in all widgets except for the Routes Widget.

Fixed indentation in HTML and all CSS and JS files.

Renamed all js files per jsConvention.