We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d79919 commit 8c1e562Copy full SHA for 8c1e562
js/extjs/fix-defer.js
@@ -17,6 +17,15 @@
17
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
18
*/
19
20
+/*
21
+ * Both ExtJS and PrototypeJS write to Function.prototype.defer
22
+ * However, PrototypeJS has a default delay of 0.01s if no first argument is provided
23
+ * Ref: https://github.com/prototypejs/prototype/blob/1.7.3/src/prototype/lang/function.js#L292-L295
24
+ * While ExtJS executes the function immediately. Presumably this causes an error for
25
+ * PrototypeJS Ajax calls.
26
+ *
27
+ */
28
+
29
(function(){
30
var eDefer = Function.prototype.defer;
31
Function.prototype.defer = function() {
@@ -28,4 +37,4 @@
37
38
return eDefer.apply(this, arguments);
39
}
-})();
40
+})();
0 commit comments