Permalink
Browse files

Fixed $.jqmData() behavior to match $.fn.jqmData()

  • Loading branch information...
gseguin committed Oct 5, 2011
1 parent 2f8d190 commit 27b51c47e979917969abf3854ad9135a3704855f
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/jquery.mobile.core.js
View
@@ -136,7 +136,11 @@
};
$.jqmData = function( elem, prop, value ) {
return $.data( elem, $.mobile.nsNormalize( prop ), value );
var result;
if ( typeof prop != "undefined" ) {
result = $.data( elem, prop ? $.mobile.nsNormalize( prop ) : prop, value );
}
return result;
};
$.fn.jqmRemoveData = function( prop ) {

0 comments on commit 27b51c4

Please sign in to comment.