Don't fire openpage twice on start
This commit is contained in:
@@ -24,8 +24,8 @@ 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));
|
||||||
self.c.addEvent('click:relay(a[href^=/]:not([target]))', self.pushState.bind(self));
|
self.c.addEvent('click:relay(a[href^=/]:not([target]))', self.pushState.bind(self));
|
||||||
|
|||||||
Reference in New Issue
Block a user