Skip to content

Commit f4fb34d

Browse files
committed
add .jshintrc
1 parent e58474f commit f4fb34d

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

.jshintrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"nonew": true,
3+
"curly": true,
4+
"noarg": true,
5+
"forin": true,
6+
"noempty": true,
7+
"eqeqeq": true,
8+
"strict": true,
9+
"undef": true,
10+
"bitwise": true,
11+
"browser": true,
12+
"trailing": true,
13+
"newcap": true,
14+
"immed": true,
15+
"freeze": true
16+
}

dist/knockout.mapping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@
786786
var parentName = options.parentName;
787787
visitPropertiesOrArrayEntries(unwrappedRootObject, function(indexer) {
788788
var escapedIndexer = escapePropertyNameComponent(indexer);
789-
if (options.ignore && ko.utils.arrayIndexOf(options.ignore, escapedIndexer) != -1) return;
789+
if (options.ignore && ko.utils.arrayIndexOf(options.ignore, escapedIndexer) !== -1) return;
790790

791791
var propertyValue = unwrappedRootObject[indexer];
792792
options.parentName = getPropertyName(parentName, unwrappedRootObject, indexer);

0 commit comments

Comments
 (0)