diff options
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/data.js b/src/data.js index 786477f64..fb97d2fda 100644 --- a/src/data.js +++ b/src/data.js @@ -264,6 +264,14 @@ jQuery.fn.extend({ if ( data !== undefined ) { return data; } + + // Attempt to get data from the cache + // with the key camelized + data = data_user.get( elem, camelKey ); + if ( data !== undefined ) { + return data; + } + // Attempt to "discover" the data in // HTML5 custom data-* attrs data = dataAttr( elem, key, undefined ); |