diff options
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/data.js b/src/data.js index f7734e7f3..b626fda45 100644 --- a/src/data.js +++ b/src/data.js @@ -123,7 +123,12 @@ jQuery.fn.extend( { // Attempt to get data from the cache // with the key as-is - data = dataUser.get( elem, key ); + data = dataUser.get( elem, key ) || + + // Try to find dashed key if it exists (gh-2779) + // This is for 2.2.x only + dataUser.get( elem, key.replace( rmultiDash, "-$&" ).toLowerCase() ); + if ( data !== undefined ) { return data; } |