This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jshint node: true */ | |
var _ = require('underscore'), | |
Config = require('lumbar').config; | |
var queryStringParam = /^\?(.*)/, | |
namedParam = /:([\w\d]+)/g, | |
splatParam = /\*([\w\d]+)/g, | |
escapeRegExp = /[-[\]{}()+?.,\\^$|#\s]/g; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/js/lib/backbone.historytracker.js b/js/lib/backbone.historytracker.js | |
index 9dbedd6..f9f4dc5 100644 | |
--- a/js/lib/backbone.historytracker.js | |
+++ b/js/lib/backbone.historytracker.js | |
@@ -100,6 +100,10 @@ | |
} | |
} | |
_navigate.call(this, fragment, options); | |
+ | |
+ if (!options || !options.trigger) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function expandToken(input, scope) { | |
if (input && input.indexOf && input.indexOf('{{') >= 0) { | |
var re = /(?:\{?[^{]+)|(?:\{\{([^}]+)\}\})/g, | |
match, | |
ret = []; | |
function deref(token, scope) { | |
var segments = token.split('.'), | |
len = segments.length; | |
for (var i = 0; scope && i < len; i++) { | |
if (segments[i] !== 'this') { |
NewerOlder