mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-26 17:14:42 +00:00
make sure an undefined prop stays undefined
This commit is contained in:
parent
fcbbb58de2
commit
665e87dd5b
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ){
|
||||
|
|
|
|||
Loading…
Reference in a new issue