2010-11-10 00:55:52 +00:00
|
|
|
/*
|
|
|
|
|
* jQuery Mobile Framework : widget factory extentions for mobile
|
|
|
|
|
* Copyright (c) jQuery Project
|
2010-11-20 03:47:47 +00:00
|
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
|
|
|
* http://jquery.org/license
|
2010-11-10 00:55:52 +00:00
|
|
|
*/
|
2010-11-11 15:49:15 +00:00
|
|
|
(function($, undefined ) {
|
2010-10-06 19:14:59 +00:00
|
|
|
|
|
|
|
|
$.widget( "mobile.widget", {
|
|
|
|
|
_getCreateOptions: function() {
|
|
|
|
|
var elem = this.element,
|
|
|
|
|
options = {};
|
|
|
|
|
$.each( this.options, function( option ) {
|
2011-03-25 21:50:40 +00:00
|
|
|
var value = elem.jqmData( option.replace( /[A-Z]/g, function( c ) {
|
2010-10-14 21:37:18 +00:00
|
|
|
return "-" + c.toLowerCase();
|
2010-10-06 19:14:59 +00:00
|
|
|
} ) );
|
|
|
|
|
if ( value !== undefined ) {
|
|
|
|
|
options[ option ] = value;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return options;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
})( jQuery );
|