From abd4879a24b3a29af4f1557fe174a6415c42f03f Mon Sep 17 00:00:00 2001 From: Bastian Pawlik Date: Wed, 5 Jan 2011 01:12:10 +0100 Subject: [PATCH] Fix pathbinder navigation when page is initial loaded without '#'. --- vendor/couchapp/_attachments/jquery.pathbinder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendor/couchapp/_attachments/jquery.pathbinder.js b/vendor/couchapp/_attachments/jquery.pathbinder.js index 39e5a1f..1399434 100644 --- a/vendor/couchapp/_attachments/jquery.pathbinder.js +++ b/vendor/couchapp/_attachments/jquery.pathbinder.js @@ -14,6 +14,7 @@ _currentPath = getPath(); // if path is actually changed from what we thought it was, then react if (_lastPath != _currentPath) { + _lastPath = _currentPath; return triggerOnPath(_currentPath); } } @@ -30,7 +31,7 @@ triggerOnPath(loadPath); } else { goPath(defaultPath); - triggerOnPath(defaultPath); + triggerOnPath(getPath()); } }) },