mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 01:25:10 -05:00
Build: update grunt-jscs-checker and pass with the new rules
Conflicts: build/tasks/build.js src/ajax/xhr.js src/attributes/classes.js src/attributes/prop.js src/attributes/val.js src/core/init.js src/core/ready.js src/css.js src/css/curCSS.js src/css/defaultDisplay.js src/data.js src/data/var/dataPriv.js src/data/var/dataUser.js src/dimensions.js src/effects.js src/event.js src/manipulation.js src/offset.js src/queue.js src/selector-native.js test/data/testrunner.js
This commit is contained in:
@@ -26,7 +26,7 @@ function dataAttr( elem, key, data ) {
|
||||
+data + "" === data ? +data :
|
||||
rbrace.test( data ) ? jQuery.parseJSON( data ) :
|
||||
data;
|
||||
} catch( e ) {}
|
||||
} catch ( e ) {}
|
||||
|
||||
// Make sure we set the data so it isn't changed later
|
||||
jQuery.data( elem, key, data );
|
||||
@@ -78,7 +78,8 @@ function internalData( elem, name, data, pvt /* Internal Use Only */ ) {
|
||||
|
||||
// Avoid doing any more work than we need to when trying to get data on an
|
||||
// object that has no data at all
|
||||
if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
|
||||
if ( (!id || !cache[id] || (!pvt && !cache[id].data)) &&
|
||||
data === undefined && typeof name === "string" ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -313,7 +314,6 @@ jQuery.fn.extend({
|
||||
}
|
||||
|
||||
return arguments.length > 1 ?
|
||||
|
||||
// Sets one value
|
||||
this.each(function() {
|
||||
jQuery.data( this, key, value );
|
||||
|
||||
Reference in New Issue
Block a user