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