aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-01-06 05:31:47 +0000
committerJohn Resig <jeresig@gmail.com>2007-01-06 05:31:47 +0000
commitc330527318775d32c87954f640c53066e7a732d9 (patch)
tree8244f4f3524047399eeae6b4afd3c11e867086cf /src/ajax
parente473f3a9118e4eae8d1aa2c3ab3527944db2e83b (diff)
downloadjquery-c330527318775d32c87954f640c53066e7a732d9.tar.gz
jquery-c330527318775d32c87954f640c53066e7a732d9.zip
Converted instances of new function(){ ... } to use jQuery.each(...) instead. Also, removed unnecessary documentation for trigger functions (.mouseup()!?).
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/ajax.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js
index 45159a5f5..953876a19 100644
--- a/src/ajax/ajax.js
+++ b/src/ajax/ajax.js
@@ -240,17 +240,11 @@ if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
* @param Function callback The function to execute.
* @cat AJAX
*/
-
-new function(){
- var e = "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(",");
-
- for ( var i = 0; i < e.length; i++ ) new function(){
- var o = e[i];
- jQuery.fn[o] = function(f){
- return this.bind(o, f);
- };
+jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
+ jQuery.fn[o] = function(f){
+ return this.bind(o, f);
};
-};
+});
jQuery.extend({