mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-21 00:10:24 +00:00
28 lines
501 B
JavaScript
28 lines
501 B
JavaScript
/*
|
|
* jQuery Mobile Framework : "page" plugin
|
|
* Copyright (c) jQuery Project
|
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
* http://jquery.org/license
|
|
*/
|
|
|
|
(function( $, undefined ) {
|
|
|
|
$.widget( "mobile.page", $.mobile.widget, {
|
|
options: {
|
|
theme: "c",
|
|
domCache: false
|
|
},
|
|
|
|
_create: function() {
|
|
var $elem = this.element,
|
|
o = this.options;
|
|
|
|
if ( this._trigger( "beforeCreate" ) === false ) {
|
|
return;
|
|
}
|
|
|
|
$elem.addClass( "ui-page ui-body-" + o.theme );
|
|
}
|
|
});
|
|
|
|
})( jQuery );
|