Update jshintrc to conform to new style guide. Conform to onevar and unused in tests. Fixes #13755.

This commit is contained in:
Timmy Willison
2013-04-09 11:45:09 -04:00
parent 0afc92bd73
commit 0fa52c11cb
24 changed files with 769 additions and 657 deletions

View File

@@ -333,12 +333,12 @@ function dataAttr( elem, key, data ) {
if ( typeof data === "string" ) {
try {
data = data === "true" ? true :
data === "false" ? false :
data === "null" ? null :
// Only convert to a number if it doesn't change the string
+data + "" === data ? +data :
rbrace.test( data ) ?
JSON.parse( data ) : data;
data === "false" ? false :
data === "null" ? null :
// Only convert to a number if it doesn't change the string
+data + "" === data ? +data :
rbrace.test( data ) ? JSON.parse( data ) :
data;
} catch( e ) {}
// Make sure we set the data so it isn't changed later