jquery-mobile/js/jquery.mobile.page.js
2011-07-29 10:10:26 -07:00

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 );