From 937b05c3629459eddd4cb0942eb1d4e24ad3dccc Mon Sep 17 00:00:00 2001 From: Lars Gebhardt-Kusche Date: Sat, 7 Feb 2026 23:47:59 +0100 Subject: [PATCH] table element --- config/current.ver | 2 +- public/assets/js/bridge/table-builder.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config/current.ver b/config/current.ver index 88292fb..ca9ab89 100644 --- a/config/current.ver +++ b/config/current.ver @@ -1 +1 @@ -1.2.69 \ No newline at end of file +1.2.70 \ No newline at end of file diff --git a/public/assets/js/bridge/table-builder.js b/public/assets/js/bridge/table-builder.js index 0d04135..1c08afb 100644 --- a/public/assets/js/bridge/table-builder.js +++ b/public/assets/js/bridge/table-builder.js @@ -145,13 +145,13 @@ domc.addType('bridge-table', { model: BaseModel.extend({ initialize(props = {}, opts = {}) { - if (BaseModel.prototype.initialize) { - BaseModel.prototype.initialize.apply(this, [props, opts]); - } - // Guard: grapes may not have classes as array/collection yet + // Guard before base init: grapes expects classes to be iterable in getAttributes if (!this.classes || typeof this.classes.forEach !== 'function') { this.classes = []; } + if (BaseModel.prototype.initialize) { + BaseModel.prototype.initialize.apply(this, [props, opts]); + } const attrs = this.getAttributes ? this.getAttributes() : {}; const nextAttrs = Object.assign({ 'data-bridge-table': '1',