aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/data.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data.js b/src/data.js
index d03d51f2f..4b557de0c 100644
--- a/src/data.js
+++ b/src/data.js
@@ -25,9 +25,9 @@ jQuery.extend({
// Prevent overriding the named cache with undefined values
if ( data !== undefined ) thisCache[ name ] = data;
- if(name === true) return thisCache
- else if(name) return thisCache[name]
- else return id
+ if(name === true) return thisCache;
+ else if(name) return thisCache[name];
+ else return id;
},
removeData: function( elem, name ) {