@singularsystems/neo-core 0.10.72 → 0.10.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Model/Decorators.js +1 -1
- package/dist/Utils.js +2 -1
- package/package.json +1 -1
package/dist/Model/Decorators.js
CHANGED
|
@@ -177,6 +177,6 @@ export function Computed(isComputed) {
|
|
|
177
177
|
export function DisplayMember() {
|
|
178
178
|
return function (type, propertyKey) {
|
|
179
179
|
var pi = getOrAddPropertyInfo(type, propertyKey);
|
|
180
|
-
type.constructor.neo.displayMember = pi;
|
|
180
|
+
ensureTypeInfo(type.constructor).neo.displayMember = pi;
|
|
181
181
|
};
|
|
182
182
|
}
|
package/dist/Utils.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __spreadArray } from "tslib";
|
|
2
2
|
import { DebounceHelper } from './DebounceHelper';
|
|
3
|
+
import { ensureTypeInfo } from './Model/NeoTypeInfo';
|
|
3
4
|
var lut = [];
|
|
4
5
|
for (var i = 0; i < 256; i++) {
|
|
5
6
|
lut[i] = (i < 16 ? '0' : '') + (i).toString(16);
|
|
@@ -76,7 +77,7 @@ var Utils = /** @class */ (function () {
|
|
|
76
77
|
args[_i - 1] = arguments[_i];
|
|
77
78
|
}
|
|
78
79
|
if (type.prototype.constructor.neo) {
|
|
79
|
-
return type.
|
|
80
|
+
return ensureTypeInfo(type).neo.createInstance(args);
|
|
80
81
|
}
|
|
81
82
|
else {
|
|
82
83
|
throw "Cannot instantiate '".concat(type.name, "' because it does not have an @NeoModel attribute.");
|