mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-17 21:01:00 +00:00
A little simplification in the page plugin
This commit is contained in:
parent
a3487e620d
commit
ce5ce102dc
1 changed files with 2 additions and 4 deletions
|
|
@ -14,14 +14,12 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|||
},
|
||||
|
||||
_create: function() {
|
||||
var $elem = this.element,
|
||||
o = this.options;
|
||||
|
||||
this.element.addClass( "ui-page ui-body-" + this.options.theme );
|
||||
|
||||
if ( this._trigger( "beforeCreate" ) === false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$elem.addClass( "ui-page ui-body-" + o.theme );
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue