mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-18 06:50:23 +00:00
25 lines
595 B
JavaScript
25 lines
595 B
JavaScript
/*
|
|
* jQuery Mobile Framework : widget factory extentions for mobile
|
|
* Copyright (c) jQuery Project
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
* http://jquery.org/license
|
|
*/
|
|
(function($, undefined ) {
|
|
|
|
$.widget( "mobile.widget", {
|
|
_getCreateOptions: function() {
|
|
var elem = this.element,
|
|
options = {};
|
|
$.each( this.options, function( option ) {
|
|
var value = elem.jqmData( option.replace( /[A-Z]/g, function( c ) {
|
|
return "-" + c.toLowerCase();
|
|
} ) );
|
|
if ( value !== undefined ) {
|
|
options[ option ] = value;
|
|
}
|
|
});
|
|
return options;
|
|
}
|
|
});
|
|
|
|
})( jQuery );
|