summaryrefslogtreecommitdiffstats
path: root/web/widget/table/header.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/widget/table/header.js')
-rw-r--r--web/widget/table/header.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/widget/table/header.js b/web/widget/table/header.js
index 7c2f760..5a0ac6f 100644
--- a/web/widget/table/header.js
+++ b/web/widget/table/header.js
@@ -26,9 +26,8 @@ define(["acf2/widget/table/row", "jquery"], function(Base, $) {
},
appendWidget: function(el, label) {
- el = Base.appendWidget.call(this, el, label);
- if (el) this.header.append($("<th>").text(label));
- return el;
+ this.header.append($("<th>").text(label));
+ return Base.appendWidget.call(this, el, label);
}
});
});