Skip to content

Commit 1af032c

Browse files
committed
Small fix for usage of (tree) player
1 parent 2cadccb commit 1af032c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/JSRootCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
}
8686
} (function(JSROOT) {
8787

88-
JSROOT.version = "dev 14/12/2015";
88+
JSROOT.version = "dev 15/12/2015";
8989

9090
JSROOT.source_dir = "";
9191
JSROOT.source_min = false;

scripts/JSRootPainter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6619,6 +6619,7 @@
66196619

66206620
JSROOT.HierarchyPainter.prototype.canDisplay = function(item, drawopt) {
66216621
if (item == null) return false;
6622+
if ('_player' in item) return true;
66226623
var handle = JSROOT.getDrawHandle(item._kind, drawopt);
66236624
return (handle!=null) && ('func' in handle);
66246625
}
@@ -6630,6 +6631,7 @@
66306631
function display_callback() { JSROOT.CallBack(call_back, painter, itemname); }
66316632

66326633
h.CreateDisplay(function(mdi) {
6634+
66336635
if (!mdi) return display_callback();
66346636

66356637
var item = h.Find(itemname);

0 commit comments

Comments
 (0)