Skip to content

Commit d7dc846

Browse files
committed
Exclude internal TObject bits
In current TBufferJSON streamer these bits excluded anyway. These bits only make sense in C++ environment
1 parent 0297b65 commit d7dc846

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/JSRootCore.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,10 +1442,10 @@
14421442

14431443
switch (typename) {
14441444
case 'TObject':
1445-
JSROOT.extend(obj, { fUniqueID: 0, fBits: 0x3000008 });
1445+
JSROOT.extend(obj, { fUniqueID: 0, fBits: 0 });
14461446
break;
14471447
case 'TNamed':
1448-
JSROOT.extend(obj, { fUniqueID: 0, fBits: 0x3000008, fName: "", fTitle: "" });
1448+
JSROOT.extend(obj, { fUniqueID: 0, fBits: 0, fName: "", fTitle: "" });
14491449
break;
14501450
case 'TList':
14511451
case 'THashList':
@@ -1534,7 +1534,8 @@
15341534
JSROOT.Create("TAttMarker", obj);
15351535

15361536
JSROOT.extend(obj, {
1537-
fNcells : 0,
1537+
fBits: 8,
1538+
fNcells: 0,
15381539
fXaxis: JSROOT.Create("TAxis"),
15391540
fYaxis: JSROOT.Create("TAxis"),
15401541
fZaxis: JSROOT.Create("TAxis"),
@@ -1792,7 +1793,7 @@
17921793
* @param {array} [xpts] - array with X coordinates
17931794
* @param {array} [ypts] - array with Y coordinates */
17941795
JSROOT.CreateTGraph = function(npoints, xpts, ypts) {
1795-
var graph = JSROOT.extend(JSROOT.Create("TGraph"), { fBits: 0x3000408, fName: "graph", fTitle: "title" });
1796+
var graph = JSROOT.extend(JSROOT.Create("TGraph"), { fBits: 0x408, fName: "graph", fTitle: "title" });
17961797

17971798
if (npoints>0) {
17981799
graph.fMaxSize = graph.fNpoints = npoints;

0 commit comments

Comments
 (0)