Don't fire openpage twice on start
This commit is contained in:
1 parent
edb232df60
commit
2ca2cc9597
1 file changed
+1
-1
@@ -24,7 +24,7 @@ var CouchPotato = new Class({
|
|||||||
|
|
||||||
if(window.location.hash)
|
if(window.location.hash)
|
||||||
History.handleInitialState();
|
History.handleInitialState();
|
||||||
|
else
|
||||||
self.openPage(window.location.pathname);
|
self.openPage(window.location.pathname);
|
||||||
|
|
||||||
History.addEvent('change', self.openPage.bind(self));
|
History.addEvent('change', self.openPage.bind(self));
|
||||||
|
|||||||
Reference in new issue
Block a user