Skip to content

Commit

Permalink
Fixes from JSLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Tsongas committed Jun 9, 2013
1 parent 57b4d7f commit 10b91b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
22 changes: 10 additions & 12 deletions jlist.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Title: jlist.js
Version: 1.6.0 (Semantic versioning: http://semver.org)
Last update: 31st May, 2013
Last update: 10th June, 2013
Written by: David Waterston ([email protected])
Github repository and documentation: http://davidwaterston.github.com/jlist
Forked by: Chris Tsongas ([email protected])
Expand Down Expand Up @@ -147,7 +147,7 @@ var jList = (function () {
id,
len1 = arr1.length,
len2 = arr2.length,
out = []
out = [];

if (list1 !== "") {
for (i = 0; i < len1; i += 1) {
Expand Down Expand Up @@ -262,7 +262,7 @@ var jList = (function () {
i,
id,
len = arr.length,
out = []
out = [];

for (i = 0; i < len; i += 1) {
id = arr[i];
Expand Down Expand Up @@ -340,7 +340,7 @@ var jList = (function () {
i,
id,
len1 = arr1.length,
out = []
out = [];

for (i = 0; i < len1; i += 1) {
id = arr1[i];
Expand All @@ -362,7 +362,7 @@ var jList = (function () {
i,
id,
len1 = arr1.length,
out = []
out = [];

for (i = 0; i < len1; i += 1) {
id = arr1[i];
Expand Down Expand Up @@ -435,14 +435,13 @@ var jList = (function () {
i,
id,
len = arr.length,
out = []
out = [];

for (i = 0; i < len; i += 1) {
id = arr[i];
if (id === value1) {
out.push(value2);
}
else {
} else {
out.push(id);
}
}
Expand All @@ -460,14 +459,13 @@ var jList = (function () {
i,
id,
len = arr.length,
out = []
out = [];

for (i = 0; i < len; i += 1) {
id = arr[i];
if (id.toUpperCase() === value1.toUpperCase()) {
out.push(value2);
}
else {
} else {
out.push(id);
}
}
Expand Down Expand Up @@ -557,7 +555,7 @@ var jList = (function () {
}
delimiter = (delimiter === undefined) ? "," : delimiter;

return this.listRemoveDuplicates(this.listConcatenate(list1, list2, delimiter), delimiter)
return this.listRemoveDuplicates(this.listConcatenate(list1, list2, delimiter), delimiter);
},


Expand Down
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
##More
- *jList* is minified using [UglifyJS](http://marijnhaverbeke.nl/uglifyjs).
- Version numbers follow the [Semantic Versioning](http://semver.org) standard.
- The unminified version of the source validates clean in [jsLint (Edition 2012-08-23)](http://jslint.com).
- Written by [David Waterston] (http://dvolvr.davidwaterston.com) and [Chris Tsongas] (http://www.bitmojo.com)
- The unminified version of the source validates clean in [jsLint (Edition 2013-06-08)](http://jslint.com).
- Written by [David Waterston] (http://dvolvr.davidwaterston.com)
- Forked by [Chris Tsongas] (http://www.bitmojo.com)
- Github repository: [http://davidwaterston.github.com/jList](http://davidwaterston.github.com/jList)
- Planning and task management in [Trello](https://trello.com/board/jlist/504b80ff3a6c80626f306215)
- Developed using [Sublime Text 2](http://www.sublimetext.com/2), [CodeBox](http://www.shpakovski.com/codebox) and [CodeKit](http://incident57.com/codekit/).
Expand Down

0 comments on commit 10b91b0

Please sign in to comment.