A little simplification in the page plugin

This commit is contained in:
scottjehl 2011-08-27 10:58:46 -04:00
parent a3487e620d
commit ce5ce102dc

View file

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