Advertisement
reggi

Untitled

Apr 27th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function( $ ) {
  2.   $.fn.completion = function(anon) {
  3.  
  4.   };
  5. })( jQuery );
  6.  
  7. (function( $ ) {
  8.   $.cojax = function(args) {
  9.     var _success = args.success || function(){};
  10.     args.success = function(jqXHR, textStatus){
  11.         _success(jqXHR, textStatus);
  12.         done++;
  13.         if(done >= started)
  14.              this.completion();
  15.     }
  16.     var ajax = $.ajax(args);
  17.     started++;
  18.     return ajax;
  19.   };
  20. })( jQuery );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement