|
|
@@ -31,11 +31,7 @@
|
|
|
// Hue specific
|
|
|
var winLoc = function (href) {
|
|
|
if (href) {
|
|
|
- if (!paramBased) {
|
|
|
- location.href = href;
|
|
|
- }
|
|
|
- // TODO: When is this called?
|
|
|
- // console.log('setting: ' + href);
|
|
|
+ location.href = href;
|
|
|
} else if (!paramBased) {
|
|
|
return location;
|
|
|
} else {
|
|
|
@@ -79,6 +75,9 @@
|
|
|
|
|
|
var base = '';
|
|
|
|
|
|
+ // Hue specific
|
|
|
+ var baseHash = '';
|
|
|
+
|
|
|
/**
|
|
|
* Running flag.
|
|
|
*/
|
|
|
@@ -179,6 +178,11 @@
|
|
|
base = path;
|
|
|
};
|
|
|
|
|
|
+ page.baseHash = function (hash) {
|
|
|
+ if (0 === arguments.length) return baseHash;
|
|
|
+ baseHash = decodeURLEncodedURIComponent(hash);
|
|
|
+ };
|
|
|
+
|
|
|
/**
|
|
|
* Bind with the given `options`.
|
|
|
*
|
|
|
@@ -330,6 +334,10 @@
|
|
|
|
|
|
prevContext = ctx;
|
|
|
|
|
|
+ if (prev && prev.hash && prev.hash !== baseHash) {
|
|
|
+ return unhandled(ctx);
|
|
|
+ }
|
|
|
+
|
|
|
function nextExit() {
|
|
|
var fn = page.exits[j++];
|
|
|
if (!fn) return nextEnter();
|