@@ -130,7 +130,7 @@ cls.ResourceManagerService = function(view)
130130
131131 } . bind ( this ) ;
132132
133- /* WIP */
133+ // WIP: soon there will be some triggers to display a whole group of resource, e.g. gallery of images, videos, fonts, audios, ...
134134 this . _handle_resource_group_bound = function ( event , target )
135135 {
136136 var parent = target . get_ancestor ( '[data-frame-id]' ) ;
@@ -203,7 +203,7 @@ cls.ResourceManagerService = function(view)
203203 const MAX_PAYLOAD_SIZE = 10 * 1000 * 1000 ; // allow payloads of about 10 mb.
204204 this . _res_service . requestGetResource ( tag , [ id , [ typecode , 1 , MAX_PAYLOAD_SIZE ] ] ) ;
205205 } ;
206- //*
206+
207207 this . _on_resource_data_bound = function ( type , data )
208208 {
209209 var id = data [ 0 ] ;
@@ -277,8 +277,6 @@ cls.ResourceRequest = function(url, callback,data)
277277 {
278278 if ( status && this . _resource_manager . requestCreateRequest )
279279 {
280- // alert( 'request failed, time to craft a GET request' );
281- // debugger;
282280 var debugContext = window . window_manager_data . get_debug_context ( ) ;
283281 var tag = this . _tag_manager . set_callback ( this , this . _on_request_create_request_bound ) ;
284282 this . _resource_manager . requestCreateRequest ( tag , [ debugContext , this . _url , 'GET' ] ) ;
@@ -297,7 +295,6 @@ cls.ResourceRequest = function(url, callback,data)
297295
298296 this . _on_request_create_request_bound = function ( status , message )
299297 {
300- debugger ;
301298 }
302299
303300 this . _on_request_get_resource_bound = function ( status , message )
@@ -307,16 +304,7 @@ cls.ResourceRequest = function(url, callback,data)
307304 this . _resource = new cls . Resource ( this . _resource_id ) ;
308305 this . _resource . update ( "urlfinished" , new this . _ResourceData ( message ) ) ;
309306 this . _resource . fetch_data ( this . _on_fetch_data_bound ) ;
310- /*
311- var resptype = this._utils.mime_to_content_mode(this._res.mime);
312- var tag = this._tag_manager.set_callback(this, this._on_resource);
313- var transportType = {datauri:TRANSPORT_DATA_URI}[resptype]||TRANSPORT_STRING;
314-
315- this._resource_manager.requestGetResource(tag, [this._resource_id, [transportType, DECODE_TRUE, SIZE_LIMIT]]);
316- */
317307 }
318- else
319- debugger ;
320308
321309
322310 } . bind ( this ) ;
@@ -481,7 +469,6 @@ cls.ResourcePrototype = function()
481469 }
482470 else if ( eventname == "urlredirect" )
483471 {
484- debugger ;
485472 this . invalid = true ;
486473 }
487474 else if ( eventname == "responsefinished" )
0 commit comments