table element

This commit is contained in:
2026-02-07 23:44:56 +01:00
parent 0161627c64
commit fbcde37d95
2 changed files with 5 additions and 1 deletions

View File

@@ -1 +1 @@
1.2.68 1.2.69

View File

@@ -148,6 +148,10 @@
if (BaseModel.prototype.initialize) { if (BaseModel.prototype.initialize) {
BaseModel.prototype.initialize.apply(this, [props, opts]); BaseModel.prototype.initialize.apply(this, [props, opts]);
} }
// Guard: grapes may not have classes as array/collection yet
if (!this.classes || typeof this.classes.forEach !== 'function') {
this.classes = [];
}
const attrs = this.getAttributes ? this.getAttributes() : {}; const attrs = this.getAttributes ? this.getAttributes() : {};
const nextAttrs = Object.assign({ const nextAttrs = Object.assign({
'data-bridge-table': '1', 'data-bridge-table': '1',