Changeset 1038


Ignore:
Timestamp:
31.05.2010 22:01:02 (20 months ago)
Author:
zmsdev
Message:

Revised plugin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/plugins/www/jquery/plugin/jquery.plugin.js

    r968 r1038  
    151151                // Call postLoad callback (queueing etc) 
    152152                // Timeout needed to make sure that queue of files (this.queue) has correct value 
    153                         setTimeout(function(){that.afterGet(url);},0); 
     153                        setTimeout(function(){that.afterGet(url);},1); 
    154154                         
    155155        // If no caching or file is not cached 
     
    232232                        (function(){ 
    233233                                var callback = that.tmp_callback[i]; 
    234                                 setTimeout(function(){callback.apply(that);},0); 
     234                                setTimeout(function(){callback.apply(that);},1); 
    235235                        })(); 
    236236                } 
     237                this.tmp_callback = []; 
    237238        } 
    238239         
     
    259260        // Load each file specified for this plugin 
    260261                var getFile = function(file){that.getFile(file);}; 
     262                var that = this; 
    261263                for(var i=0;i<files.length;i++){ 
    262264                        (function(){ 
Note: See TracChangeset for help on using the changeset viewer.