fix: avoid timers stacking...

This commit is contained in:
tonio
2010-07-23 17:51:52 +02:00
parent 3f7736dd19
commit 30952e9f7b
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -93,7 +93,6 @@
loadCompose = function(event) {
event.stop();
$clear(rtimer);
current_anchor.baseurl("compose").update();
}
register_callback("compose", compose_callback);
@@ -115,6 +114,11 @@
register_callback("forward", compose_callback);
var rtimer = null;
window.addEvent("pageRefresh", function() {
$clear(rtimer);
});
refreshFolder = function() {
var query = current_anchor.serialized.substring(1);
$clear(rtimer);
@@ -135,7 +139,6 @@
if (!$defined(obj)) {
obj = $(event.target);
}
$clear(rtimer);
current_anchor.parse_string(gethref(obj), true).setparams(navparams);
current_anchor.update();
}
+1
View File
@@ -113,6 +113,7 @@ function HashWrapper(deflocation) {
};
this.update = function(force) {
window.fireEvent("pageRefresh");
location.hash = this.serialize();
if ($defined(force)) {
this.force = force;