UI dependency graph cleanup

This commit is contained in:
kayone
2013-10-08 18:43:41 -07:00
parent 86ea33b638
commit 4948d0608b
87 changed files with 1119 additions and 735 deletions
+5 -5
View File
@@ -1,18 +1,18 @@
'use strict';
define(function () {
define(['backbone'],function (Backbone) {
//This module will automatically route all relative links through backbone router rather than
//causing links to reload pages.
var routeBinder = {
bind: function (router) {
bind: function () {
var self = this;
$(document).on('click', 'a[href]', function (event) {
self._handleClick(event, router);
self._handleClick(event);
});
},
_handleClick: function (event, router) {
_handleClick: function (event) {
var $target = $(event.target);
//check if tab nav
@@ -41,7 +41,7 @@ define(function () {
if (!href.startsWith('http')) {
router.navigate(href, { trigger: true });
Backbone.history.navigate(href, { trigger: true });
}
else {