We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 908ffb3 commit 79cbb3eCopy full SHA for 79cbb3e
src/core/Model.js
@@ -125,7 +125,7 @@ export class Model extends PrioritisedObject {
125
}
126
127
/* If the code is minified, then this.constructor._name is defined, in that case that also goes for the inheriting classes */
128
- while (prototype.constructor._name || (!this.constructor._name && prototype.constructor.name !== 'Model')) {
+ while (prototype && (prototype.constructor._name || (!this.constructor._name && prototype.constructor.name !== 'Model'))) {
129
/* Get all properties except the id and constructor of this model */
130
let propNames = difference(Object.getOwnPropertyNames(prototype), ['constructor', 'id']);
131
0 commit comments