|
96 | 96 |
|
97 | 97 | "use strict"; |
98 | 98 |
|
99 | | - JSROOT.version = "5.5.0 6/07/2018"; |
| 99 | + JSROOT.version = "5.5.1 16/07/2018"; |
100 | 100 |
|
101 | 101 | JSROOT.source_dir = ""; |
102 | 102 | JSROOT.source_min = false; |
103 | 103 | JSROOT.source_fullpath = ""; // full name of source script |
104 | 104 | JSROOT.bower_dir = null; // when specified, use standard libs from bower location |
| 105 | + JSROOT.nocache = false; |
105 | 106 | JSROOT.sources = ['core']; // indicates which major sources were loaded |
106 | 107 |
|
107 | 108 | JSROOT.id_counter = 0; |
|
965 | 966 | isrootjs = true; |
966 | 967 | filename = filename.slice(3); |
967 | 968 | if (JSROOT.use_full_libs) filename = "libs/" + filename.slice(8, filename.length-7) + ".js"; |
968 | | - } else |
969 | | - if (filename.indexOf("$$$")===0) { |
| 969 | + } else if (filename.indexOf("$$$")===0) { |
970 | 970 | isrootjs = true; |
971 | 971 | filename = filename.slice(3); |
972 | 972 | if ((filename.indexOf("style/")==0) && JSROOT.source_min && |
973 | 973 | (filename.lastIndexOf('.css')==filename.length-4) && |
974 | 974 | (filename.indexOf('.min.css')<0)) |
975 | 975 | filename = filename.slice(0, filename.length-4) + '.min.css'; |
976 | | - } else |
977 | | - if (filename.indexOf("###")===0) { |
| 976 | + } else if (filename.indexOf("###")===0) { |
978 | 977 | isbower = true; |
979 | 978 | filename = filename.slice(3); |
980 | 979 | } |
|
1020 | 1019 | else |
1021 | 1020 | JSROOT.progress("loading " + filename + " ..."); |
1022 | 1021 |
|
| 1022 | + if (JSROOT.nocache && isrootjs && (filename.indexOf("?")<0)) |
| 1023 | + filename += "?stamp=" + JSROOT.nocache; |
| 1024 | + |
1023 | 1025 | if (isstyle) { |
1024 | 1026 | element = document.createElement("link"); |
1025 | 1027 | element.setAttribute("rel", "stylesheet"); |
|
2218 | 2220 |
|
2219 | 2221 | var src = JSROOT.source_fullpath; |
2220 | 2222 |
|
| 2223 | + if (JSROOT.GetUrlOption('nocache', src)!=null) JSROOT.nocache = (new Date).getTime(); // use timestamp to overcome cache limitation |
| 2224 | + |
2221 | 2225 | if (JSROOT.GetUrlOption('gui', src) !== null) |
2222 | 2226 | return window_on_load( function() { JSROOT.BuildSimpleGUI(); } ); |
2223 | 2227 |
|
|
0 commit comments