wip on react transition 7
This commit is contained in:
1 parent
765abfd572
commit
9ae5dd25ce
21 files changed
+74
-55
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Random } from 'meteor/random';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { OHIFError } from './OHIFError';
|
||||
|
||||
const OBJECT = 'object';
|
||||
@@ -30,7 +30,7 @@ export class ImageSet {
|
||||
enumerable: false,
|
||||
configurable: false,
|
||||
writable: false,
|
||||
value: Random.id() // Unique ID of the instance
|
||||
value: OHIF.utils.guid() // Unique ID of the instance
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Random } from 'meteor/random';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { ReactiveVar } from 'meteor/reactive-var';
|
||||
|
||||
/**
|
||||
@@ -130,7 +130,7 @@ export class TypeSafeCollection {
|
||||
let id = null,
|
||||
found = this._elementWithPayload(payload, true);
|
||||
if (!found) {
|
||||
id = Random.id();
|
||||
id = OHIF.utils.guid();
|
||||
this._elements(true).push({ id, payload });
|
||||
this._invalidate();
|
||||
this._trigger('insert', { id, data: payload });
|
||||
|
||||
Reference in new issue
Block a user