Converted instances of new function(){ ... } to use jQuery.each(...) instead. Also, removed unnecessary documentation for trigger functions (.mouseup()!?).
This commit is contained in:
parent
e473f3a911
commit
c330527318
2 changed files with 7 additions and 219 deletions
|
@ -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({
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue