Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
fix: remove usages of es6 from component and tests
Browse files Browse the repository at this point in the history
* Fixed a small polylint issue
  • Loading branch information
Nick Woodward committed Oct 7, 2016
1 parent 349bff3 commit 25ed5d7
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions salte-rating.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@
type: Boolean,
value: false,
reflectToAttribute: true
}
},

/**
* The rating items displayed on the screen
*/
limitItems: {
type: Array,
readOnly: true
}
},

attached: function() {
Expand All @@ -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) {
Expand Down

0 comments on commit 25ed5d7

Please sign in to comment.