cancel requests when updating URL

This commit is contained in:
rlx 2011-08-17 15:35:30 +00:00
parent 724799da58
commit 6740422a16

View file

@ -108,6 +108,7 @@ pandora.URL = (function() {
update: function() { update: function() {
var oldUserUI = Ox.clone(pandora.user.ui); var oldUserUI = Ox.clone(pandora.user.ui);
Ox.Request.cancel();
this.parse(); this.parse();
if (pandora.user.ui.section != oldUserUI.section) { if (pandora.user.ui.section != oldUserUI.section) {
pandora.$ui.appPanel.replaceElement(1, pandora.$ui.mainPanel = pandora.ui.mainPanel()); pandora.$ui.appPanel.replaceElement(1, pandora.$ui.mainPanel = pandora.ui.mainPanel());