Set config.maxrecs only if it's not already set.
[mkws-moved-to-github.git] / src / mkws-widget-record.js
index 5f333e0..4d4031c 100644 (file)
@@ -1,4 +1,4 @@
 mkws.registerWidgetType('Record', function() {
     mkws.promotionFunction('Records').call(this);
-    this.config.maxrecs = 1;
+    if (!this.config.maxrecs) this.config.maxrecs = 1;
 });