mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
32 lines
612 B
JavaScript
32 lines
612 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 );
|