[Jifty-commit] r4283 - jifty/trunk/share/web/static/js

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 21 12:48:37 EDT 2007


Author: clkao
Date: Sun Oct 21 12:48:36 2007
New Revision: 4283

Modified:
   jifty/trunk/share/web/static/js/prototype.js

Log:
our version of prototype can't deal with synchronous request.

Modified: jifty/trunk/share/web/static/js/prototype.js
==============================================================================
--- jifty/trunk/share/web/static/js/prototype.js	(original)
+++ jifty/trunk/share/web/static/js/prototype.js	Sun Oct 21 12:48:36 2007
@@ -645,9 +645,9 @@
         this.options.asynchronous);
 
       if (this.options.asynchronous) {
-        this.transport.onreadystatechange = this.onStateChange.bind(this);
         setTimeout((function() {this.respondToReadyState(1)}).bind(this), 10);
       }
+      this.transport.onreadystatechange = this.onStateChange.bind(this);
 
       this.setRequestHeaders();
 


More information about the Jifty-commit mailing list