chorus-frogs-2014/SafeRoute — pull request #37 by scottjason (2014-07-30 05:14:51+00:00)
Title: Completed Refactor V.3, Created Users Widget, Ajax onLoad, Renamed Files

-Completed Refactored V3.

-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.

-Renamed all js files per jsConvention.