X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=src%2Fdata.js;h=9fee459a2a44426080247e1406e0c73147085b8b;hp=21f0e3a55f6592a1607878ecf78de444c17dfe9f;hb=d92dc2902c1e49642ce5148f7e082d880e77a2c5;hpb=57cc182a40e909868d41f9b1bb405b06138f6cae diff --git a/src/data.js b/src/data.js index 21f0e3a..9fee459 100644 --- a/src/data.js +++ b/src/data.js @@ -68,7 +68,7 @@ jQuery.extend({ // An object can be passed to jQuery.data instead of a key/value pair; this gets // shallow copied over onto the existing cache - if ( typeof name === "object" ) { + if ( typeof name === "object" || typeof name === "function" ) { if ( pvt ) { cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name); } else {