make sure an undefined prop stays undefined

This commit is contained in:
scottjehl 2011-03-26 17:48:21 -04:00
parent fcbbb58de2
commit 665e87dd5b

View file

@ -118,7 +118,7 @@
//mobile version of data and removeData and hasData methods
//ensures all data is set and retrieved using jQuery Mobile's data namespace
$.fn.jqmData = function( prop, value ){
return this.data( prop && $.mobile.ns + prop, value );
return this.data( prop ? $.mobile.ns + prop : prop, value );
};
$.jqmData = function( elem, prop, value ){