Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function( $ ) {
- $.fn.completion = function(anon) {
- };
- })( jQuery );
- (function( $ ) {
- $.cojax = function(args) {
- var _success = args.success || function(){};
- args.success = function(jqXHR, textStatus){
- _success(jqXHR, textStatus);
- done++;
- if(done >= started)
- this.completion();
- }
- var ajax = $.ajax(args);
- started++;
- return ajax;
- };
- })( jQuery );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement