Skip to content

Commit 693c211

Browse files
committed
update examples
1 parent 990ac8f commit 693c211

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/draw_gr.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
// do not read file when not required - create only fake instance
9393
if (is_minimal) return filecallback({ fURL: dir+filename });
9494

95-
new JSROOT.TFile(dir + filename + "+", function(file) {
95+
JSROOT.OpenFile(dir + filename + "+", function(file) {
9696
if (file==null) return file_error(dir+filename + " cannot be opened");
9797
filecallback(file);
9898
});

docs/latex.htm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@
2828
}
2929

3030
function LoadFile(filename, filecallback) {
31-
3231
var dir = JSROOT.GetUrlOption("path");
3332
if (dir==null) dir = global_dir;
3433

35-
new JSROOT.TFile(dir + filename + "+", function(file) {
34+
JSROOT.OpenFile(dir + filename + "+", function(file) {
3635
if (file==null) return file_error(dir+filename + " cannot be opened");
3736
filecallback(file);
3837
});

0 commit comments

Comments
 (0)