git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jquery testrunner: reset global events after each run, speeds up a test run for ajax...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
c3cd3d8
..
f6f0bd5
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-465,13
+465,13
@@
jQuery.fn = jQuery.prototype = {
var parts = key.split(".");
parts[1] = parts[1] ? "." + parts[1] : "";
var parts = key.split(".");
parts[1] = parts[1] ? "." + parts[1] : "";
- if ( value == null ) {
+ if ( value === undefined ) {
var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
- if ( data == undefined && this.length )
+ if ( data === undefined && this.length )
data = jQuery.data( this[0], key );
data = jQuery.data( this[0], key );
- return data == null && parts[1] ?
+ return data === undefined && parts[1] ?
this.data( parts[0] ) :
data;
} else
this.data( parts[0] ) :
data;
} else
@@
-669,7
+669,7
@@
jQuery.extend({
jQuery.cache[ id ] = {};
// Prevent overriding the named cache with undefined values
jQuery.cache[ id ] = {};
// Prevent overriding the named cache with undefined values
- if ( data != undefined )
+ if ( data !== undefined )
jQuery.cache[ id ][ name ] = data;
// Return the named cache data, or the ID for the element
jQuery.cache[ id ][ name ] = data;
// Return the named cache data, or the ID for the element