From 25ed5d7985b13d8011dc106e192e89561fb18070 Mon Sep 17 00:00:00 2001 From: Nick Woodward Date: Fri, 7 Oct 2016 08:38:30 -0500 Subject: [PATCH] fix: remove usages of es6 from component and tests * Fixed a small polylint issue --- salte-rating.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/salte-rating.html b/salte-rating.html index 9a0c5cd..f0ce999 100644 --- a/salte-rating.html +++ b/salte-rating.html @@ -105,7 +105,15 @@ type: Boolean, value: false, reflectToAttribute: true - } + }, + + /** + * The rating items displayed on the screen + */ + limitItems: { + type: Array, + readOnly: true + } }, attached: function() { @@ -125,11 +133,11 @@ * Renders the items based on the limit */ renderItems: function() { - let limitItems = []; - for (let i = 0; i < this.limit; i++) { + var limitItems = []; + for (var i = 0; i < this.limit; i++) { limitItems.push(i); } - this.set('limitItems', limitItems); + this._setLimitItems(limitItems); }, _refreshRating: function(value) {