Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 27b51c47e979917969abf3854ad9135a3704855f 1 parent 2f8d190
@gseguin gseguin authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/jquery.mobile.core.js
View
6 js/jquery.mobile.core.js
@@ -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 ) {
Please sign in to comment.
Something went wrong with that request. Please try again.