Changeset 2628 for trunk/phpgwapi/js/tools/xconnector.js
- Timestamp:
- 04/26/10 16:03:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/js/tools/xconnector.js
r2601 r2628 100 100 } 101 101 102 if ( _THREADS[ _ID ]._CACHE ) 103 this._CACHED[ _ID ] = _data; 104 102 105 delete _THREADS[ _ID ]; 103 106 … … 105 108 try 106 109 { 107 if ( this._cache )108 {109 this._CACHED[ _ID ] = _data;110 this._cache = false;111 }112 113 110 _request( _data ); 114 111 } … … 228 225 '_MODE' : 'TEXT', // [XML | TEXT] 229 226 '_TYPE' : null, // [4 for request | 3 for stream] 230 '_XHR' : null // [4 for request | 3 for stream] 227 '_XHR' : null, // [4 for request | 3 for stream] 228 '_CACHE' : ( ( _argv.cache && _argv.cache === true ) ? true : false ) 231 229 }; 232 230 233 231 if ( _argv.mode && ( _argv.mode == 'XML' || _argv.mode == 'TEXT' ) ) 234 _THREADS[ _ID ] = _argv.mode;232 _THREADS[ _ID ]._MODE = _argv.mode; 235 233 236 234 if ( _argv.handler ) … … 256 254 } 257 255 258 if ( this._cache && this._CACHED[ _ID ] ) 259 { 260 this._cache = false; 256 if ( _THREADS[ _ID ]._CACHE && this._CACHED[ _ID ] ) 257 { 261 258 if ( _THREADS[ _ID ]._HANDLER.request ) 262 259 _THREADS[ _ID ]._HANDLER.request( this._CACHED[ _ID ] ); … … 302 299 this._CONTROLLER = ''; 303 300 304 this._cache = false;305 306 301 this._CACHED = [ ]; 307 302 … … 333 328 Connector.prototype.cache = function( ) 334 329 { 335 _cache = true;336 337 if ( arguments.length == 1 && arguments[ 0 ].constructor == Boolean )338 _cache = arguments[ 0 ];339 340 this._cache = _cache;341 342 330 return this; 343 331 };
Note: See TracChangeset
for help on using the changeset viewer.