includes/clientside/jsres.php
changeset 780 f65e35566b63
parent 779 609e35845ec3
child 798 ddfc1b554a08
equal deleted inserted replaced
779:609e35845ec3 780:f65e35566b63
   199       }
   199       }
   200       
   200       
   201       $apex = filemtime("includes/clientside/static/$js_file");
   201       $apex = filemtime("includes/clientside/static/$js_file");
   202       
   202       
   203       $file_contents = file_get_contents("includes/clientside/static/$js_file");
   203       $file_contents = file_get_contents("includes/clientside/static/$js_file");
   204       $everything .= jsres_cache_check($js_file, $file_contents) . ' loaded_components[\'' . $js_file . '\'] = true;';
   204       $everything .= jsres_cache_check($js_file, $file_contents) . ' loaded_components[\'' . $js_file . '\'] = true; if ( onload_complete ) { runOnloadHooks(); onload_hooks = []; };';
   205     }
   205     }
   206   }
   206   }
   207   else
   207   else
   208   {
   208   {
   209     if ( !preg_match('/^[a-z0-9_-]+\.js$/i', $js_file) )
   209     if ( !preg_match('/^[a-z0-9_-]+\.js$/i', $js_file) )
   213     }
   213     }
   214     
   214     
   215     $apex = filemtime("includes/clientside/static/$js_file");
   215     $apex = filemtime("includes/clientside/static/$js_file");
   216     
   216     
   217     $file_contents = file_get_contents("includes/clientside/static/$js_file");
   217     $file_contents = file_get_contents("includes/clientside/static/$js_file");
   218     $everything = jsres_cache_check($js_file, $file_contents) . ' loaded_components[\'' . $js_file . '\'] = true;';
   218     $everything = jsres_cache_check($js_file, $file_contents) . ' loaded_components[\'' . $js_file . '\'] = true; if ( onload_complete ) { runOnloadHooks(); onload_hooks = []; };';
   219   }
   219   }
   220 }
   220 }
   221 else
   221 else
   222 {
   222 {
   223   // compress enano-lib-basic
   223   // compress enano-lib-basic