Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 849c884

Browse files
fix let usage in common.js
1 parent 8b0cdb1 commit 849c884

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎themes/vue/source/js/common.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
function levenshteinDistance (a, b) {
5959
var m = []
6060
if (!(a && b)) return (b || a).length
61-
for (let i = 0; i <= b.length; m[i] = [i++]) {}
62-
for (let j = 0; j <= a.length; m[0][j] = j++) {}
63-
for (let i = 1; i <= b.length; i++) {
64-
for (let j = 1; j <= a.length; j++) {
61+
for (var i = 0; i <= b.length; m[i] = [i++]) {}
62+
for (var j = 0; j <= a.length; m[0][j] = j++) {}
63+
for (var i = 1; i <= b.length; i++) {
64+
for (var j = 1; j <= a.length; j++) {
6565
m[i][j] = b.charAt(i - 1) === a.charAt(j - 1)
6666
? m[i - 1][j - 1]
6767
: m[i][j] = Math.min(

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /