             }
         }
 
+        private function _delete() : void {
+            delete reqs[_req_id];
+        }
+
         protected function resourceLoadingError() : void {
-            delete reqs[_req_id];
+            _delete();
             dispatchEvent(new IOErrorEvent(IOErrorEvent.IO_ERROR));
         }
 
         protected function resourceLoadingSuccess() : void {
-            delete reqs[_req_id];
+            _delete();
             dispatchEvent(new Event(Event.COMPLETE));
         }
     }

 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package org.hola {
    import flash.events.Event;
    import flash.events.IOErrorEvent;
    import flash.events.ProgressEvent;
    import flash.external.ExternalInterface;
    import flash.net.URLRequest;
    import flash.net.URLStream;
    import flash.utils.ByteArray;
    import flash.utils.getTimer;
    import flash.utils.Timer;

            js_api_inited = true;
        }

        protected function _trigger(cb : String, data : Object) : void {
            if (!_hola_managed && !_self_load)
            {
                // XXX arik: need ZErr.throw
                ZErr.log('invalid trigger');
