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

fix: remove usages of es6 from component and tests #7

Merged
merged 2 commits into from
Oct 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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