vue-multiselect
Advanced tools
Comparing version 0.1.8 to 0.1.9
{ | ||
"name": "vue-multiselect", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Multiselect component for vue.js", | ||
@@ -5,0 +5,0 @@ "author": "Damian Dulisz <damian.dulisz@monterail.com>", |
@@ -204,3 +204,3 @@ // Copied from Vuex’s util.js | ||
filteredOptions () { | ||
let options = this.hideSelected | ||
var options = this.hideSelected | ||
? this.options.filter(this.isNotSelected) | ||
@@ -211,4 +211,5 @@ : this.options | ||
allKeys () { | ||
return this.value.map((element) => { | ||
return element[this.key] | ||
var key = this.key | ||
return this.value.map(function (element) { | ||
return element[key] | ||
}) | ||
@@ -215,0 +216,0 @@ }, |
@@ -28,4 +28,4 @@ module.exports = { | ||
this.pointer++ | ||
let pointerPosition = this.pointer * 40 | ||
let visibleElements = this.maxHeight / 40 | ||
var pointerPosition = this.pointer * 40 | ||
var visibleElements = this.maxHeight / 40 | ||
if (this.$els.list.scrollTop <= pointerPosition - visibleElements * 40) { | ||
@@ -39,3 +39,3 @@ this.$els.list.scrollTop = pointerPosition - (visibleElements - 1) * 40 | ||
this.pointer-- | ||
let pointerPosition = this.pointer * 40 | ||
var pointerPosition = this.pointer * 40 | ||
if (this.$els.list.scrollTop >= pointerPosition) { | ||
@@ -42,0 +42,0 @@ this.$els.list.scrollTop = pointerPosition |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
235118
64
2878