slim-select
Advanced tools
Comparing version 0.11.0 to 0.11.1
{ | ||
"name": "slim-select", | ||
"description": "Slim vanilla javascript select dropdown", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"author": "Brian Voelker <brian@webiswhatido.com> (http://webiswhatido.com)", | ||
@@ -6,0 +6,0 @@ "homepage": "https://slimselectjs.com", |
@@ -18,10 +18,10 @@ import Vue from 'vue' | ||
let targets = el.querySelectorAll('code') | ||
targets.forEach((target) => { | ||
for (var i = 0; i < targets.length; i++) { | ||
// if a value is directly assigned to the directive, use this | ||
// instead of the element content. | ||
if (binding.value) { | ||
target.innerHTML = binding.value | ||
targets[i].innerHTML = binding.value | ||
} | ||
hljs.highlightBlock(target) | ||
}) | ||
hljs.highlightBlock(targets[i]) | ||
} | ||
}, | ||
@@ -31,8 +31,8 @@ componentUpdated: function (el, binding) { | ||
let targets = el.querySelectorAll('code') | ||
targets.forEach((target) => { | ||
for (var i = 0; i < targets.length; i++) { | ||
if (binding.value) { | ||
target.innerHTML = binding.value | ||
hljs.highlightBlock(target) | ||
targets[i].innerHTML = binding.value | ||
hljs.highlightBlock(targets[i]) | ||
} | ||
}) | ||
} | ||
} | ||
@@ -39,0 +39,0 @@ }) |
Sorry, the diff of this file is too big to display
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
1252495