From 88e20e6b226eeedb896ed86993e3aaeeea4a934d Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 3 Apr 2014 16:51:54 +0100 Subject: [PATCH] Set config.maxrecs only if it's not already set. This allows the default to be overridden by the application. --- src/mkws-widget-record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkws-widget-record.js b/src/mkws-widget-record.js index 5f333e0..4d4031c 100644 --- a/src/mkws-widget-record.js +++ b/src/mkws-widget-record.js @@ -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; }); -- 1.7.10.4