mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Precompute the parts array; clean up a JSLint complaint.
Followup to 6c2a501de4
for bug #5571.
This commit is contained in:
parent
6aa4095ed6
commit
2c75a993be
@ -281,10 +281,11 @@ jQuery.fn.extend({
|
||||
});
|
||||
}
|
||||
|
||||
parts = key.split( ".", 2 );
|
||||
parts[1] = parts[1] ? "." + parts[1] : "";
|
||||
part = parts[1] + "!";
|
||||
|
||||
return jQuery.access( this, function( value ) {
|
||||
parts = key.split( ".", 2 ),
|
||||
parts[1] = parts[1] ? "." + parts[1] : "";
|
||||
part = parts[1] + "!";
|
||||
|
||||
if ( value === undefined ) {
|
||||
data = this.triggerHandler( "getData" + part, [ parts[0] ] );
|
||||
|
Loading…
Reference in New Issue
Block a user