From: Mike Taylor Date: Thu, 3 Apr 2014 15:51:54 +0000 (+0100) Subject: Set config.maxrecs only if it's not already set. X-Git-Tag: 1.0.0~1063 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=88e20e6b226eeedb896ed86993e3aaeeea4a934d;p=mkws-moved-to-github.git Set config.maxrecs only if it's not already set. This allows the default to be overridden by the application. --- 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; });