Fix virtual id get function.
This commit is contained in:
parent
2270ba4db4
commit
3fac41985b
|
@ -253,7 +253,7 @@ ModelBuilder.prototype.define = function defineClass(className, properties, sett
|
|||
if (idProp !== 'id') {
|
||||
Object.defineProperty(ModelClass.prototype, 'id', {
|
||||
get: function () {
|
||||
var idProp = ModelClass.definition.idNames[0];
|
||||
var idProp = ModelClass.definition.idNames()[0];
|
||||
return this.__data[idProp];
|
||||
},
|
||||
configurable: true,
|
||||
|
|
Loading…
Reference in New Issue