Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update intro.js #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions dev/src/intro.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

var crossroads,
let crossroads,
_hasOptionalGroupBug,
UNDEF;

Expand All @@ -15,7 +15,7 @@
return arr.indexOf(val);
} else {
//Array.indexOf doesn't work on IE 6-7
var n = arr.length;
let n = arr.length;
while (n--) {
if (arr[n] === val) {
return n;
Expand All @@ -26,7 +26,7 @@
}

function arrayRemove(arr, item) {
var i = arrayIndexOf(arr, item);
let i = arrayIndexOf(arr, item);
if (i !== -1) {
arr.splice(i, 1);
}
Expand All @@ -50,7 +50,7 @@

//borrowed from AMD-utils
function typecastValue(val) {
var r;
let r;
if (val === null || val === 'null') {
r = null;
} else if (val === 'true') {
Expand All @@ -70,7 +70,7 @@
}

function typecastArrayValues(values) {
var n = values.length,
let n = values.length,
result = [];
while (n--) {
result[n] = typecastValue(values[n]);
Expand All @@ -80,7 +80,7 @@

// borrowed from MOUT
function decodeQueryString(queryStr, shouldTypecast) {
var queryArr = (queryStr || '').replace('?', '').split('&'),
let queryArr = (queryStr || '').replace('?', '').split('&'),
reg = /([^=]+)=(.+)/,
i = -1,
obj = {},
Expand Down