Skip to content

Commit 5b8db44

Browse files
author
p01
committed
cleanup
1 parent 8157bd3 commit 5b8db44

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

src/resource-manager/resource_service.js

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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")

src/resource-manager/resource_templates.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ templates.resource_detail =
162162
return this.no_data_available(resource);
163163

164164
var specificTemplate = this[resource.type]?resource.type:'text';
165-
if(!this[resource.type])debugger;
166165

167166
return(
168167
['div',

0 commit comments

Comments
 (0)