@@ -104,8 +104,8 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
104104 {
105105 var document_resources = context . document_resources [ d . documentID ] || [ ] ;
106106 var resources = context . resources . filter ( function ( r ) {
107- return document_resources . contains ( r . uid ) ;
108- } ) ;
107+ return document_resources . contains ( r . uid ) ;
108+ } ) ;
109109
110110 if ( resources . length > 0 )
111111 {
@@ -190,22 +190,22 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
190190 this . resource = function ( context , depth , r )
191191 {
192192 var search = context . search_term ;
193- var partial_URL_match = "" ;
193+ var partial_url_match = "" ;
194194 if ( search != "" )
195195 {
196196 var pos_first = r . url . indexOf ( search ) - URL_MATCH_CONTEXT_SIZE ;
197197 var pos_last = r . url . lastIndexOf ( search ) + URL_MATCH_CONTEXT_SIZE + search . length ;
198198 var preffix = pos_first > 0 ? "…" : "" ;
199199 var suffix = pos_last < r . url . length ? "…" : "" ;
200200
201- partial_URL_match = preffix + r . url . substring ( pos_first , pos_last ) + suffix ;
201+ partial_url_match = preffix + r . url . substring ( pos_first , pos_last ) + suffix ;
202202 }
203203
204204 this . flat_list . push (
205205 [ "li" ,
206206 [ "h2" ,
207207 [ "span" ,
208- partial_URL_match || this . _get_short_distinguisher ( r ) ,
208+ partial_url_match || this . _get_short_distinguisher ( r ) ,
209209 "class" , "resource-tree-resource-label" ,
210210 "style" , "margin-left:" + ( 1 + depth ) * DEPTH_IDENTATION + "px;" ,
211211 "data-tooltip" , "js-script-select" ,
@@ -223,7 +223,6 @@ window.templates.resource_tree || (window.templates.resource_tree = new function
223223 } ;
224224} ) ;
225225
226-
227226window . templates . resource_detail || ( window . templates . resource_detail = new function ( )
228227{
229228 this . update = function ( resource )
@@ -306,8 +305,8 @@ window.templates.resource_detail || (window.templates.resource_detail = new func
306305 [ "span" ,
307306 ( is_error ? info . response_code + " - " : "" ) +
308307 ui_strings . S_RESOURCE_SENT_AND_GUESSED_TYPE
309- . replace ( "%(SENT)s" , resource . data . mimeType )
310- . replace ( "%(GUESSED)s" , resource . type ) +
308+ . replace ( "%(SENT)s" , resource . data . mimeType )
309+ . replace ( "%(GUESSED)s" , resource . type ) +
311310 ( info . character_encoding && " " + ui_strings . S_RESOURCE_ENCODING . replace ( "%s" , info . character_encoding ) ) ,
312311 "class" , "resource-detail-overview-type" + ( is_error ? " resource-detail-error" : "" )
313312 ] ,
0 commit comments