src/aria/core/DownloadMgr.js
function (evt) {
            var loader = evt.src, cache = this._cache, itm, lps = loader.getLogicalPaths();
            if (lps) {
                // remove loader ref from all 'files' entries
                var sz = lps.length;
                for (var i = 0; sz > i; i++) {
                    itm = cache.getItem("files", lps[i], false);
                    if (itm) {
                        this.$assert(120, itm.loader == loader);
                        itm.loader = null;
                    }
                }
            }
            // remove entry from "urls" category
            itm = cache.getItem("urls", loader.getURL(), false);
            if (itm) {
                this.$assert(128, itm.loader == loader);
                itm.loader = null;
                itm.status = this._cache.STATUS_AVAILABLE;
            }
            // dispose
            loader.$dispose();
        }
function (evt) {
            var loader = evt.src, cache = this._cache, itm, lps = loader.getLogicalPaths();
            if (lps) {
                // remove loader ref from all 'files' entries
                var sz = lps.length;
                for (var i = 0; sz > i; i++) {
                    itm = cache.getItem("files", lps[i], false);
                    if (itm) {
                        this.$assert(120, itm.loader == loader);
                        itm.loader = null;
                    }
                }
            }
            // remove entry from "urls" category
            itm = cache.getItem("urls", loader.getURL(), false);
            if (itm) {
                this.$assert(128, itm.loader == loader);
                itm.loader = null;
                itm.status = this._cache.STATUS_AVAILABLE;
            }
            // dispose
            loader.$dispose();
        }
function ( evt ) { var loader = evt . src , cache = this . _cache , itm , lps = loader . getLogicalPaths ( ) ; if ( lps ) { // remove loader ref from all 'files' entries var sz = lps . length ; for ( var i = 0 ; sz > i ; i ++ ) { itm = cache . getItem ( "files" , lps [ i ] , false ) ; if ( itm ) { this . $assert ( 120 , itm . loader == loader ) ; itm . loader = null ; } } } // remove entry from "urls" category itm = cache . getItem ( "urls" , loader . getURL ( ) , false ) ; if ( itm ) { this . $assert ( 128 , itm . loader == loader ) ; itm . loader = null ; itm . status = this . _cache . STATUS_AVAILABLE ; } // dispose loader . $dispose ( ) ; }
Internal method called when a file loader can be disposed
@param {aria.core.FileLoader:complete:event} evt
@private
Internal method called when a file loader can be disposed