[Jifty-commit] r7405 - jifty/trunk/share/web/static/js
Jifty commits
jifty-commit at lists.jifty.org
Tue Aug 18 01:49:17 EDT 2009
Author: sartak
Date: Tue Aug 18 01:49:17 2009
New Revision: 7405
Modified:
jifty/trunk/share/web/static/js/jifty.js
Log:
We have to be smarter about whether or not we're preloading with this delayed preloading
Modified: jifty/trunk/share/web/static/js/jifty.js
==============================================================================
--- jifty/trunk/share/web/static/js/jifty.js (original)
+++ jifty/trunk/share/web/static/js/jifty.js Tue Aug 18 01:49:17 2009
@@ -1599,12 +1599,13 @@
if (Jifty.preloading_regions[ args['preload_key'] ]) {
return false;
}
- Jifty.preloading_regions[ args['preload_key'] ] = 1;
// We're waiting for an action. We don't want to preload any more regions
// until we know that action has been executed.
if (Jifty.preloading_is_queued) {
+ Jifty.preloading_regions[ args['preload_key'] ] = 1;
Jifty.queued_preloads.push(function () {
+ delete Jifty.preloading_regions[ args['preload_key'] ];
Jifty.preload(args, trigger);
});
return false;
@@ -1622,6 +1623,8 @@
Jifty.update(args, trigger);
+ Jifty.preloading_regions[ args['preload_key'] ] = 1;
+
return false;
}
More information about the Jifty-commit
mailing list