previous commit should not have switched the order of trigger and add classes. Reverted, with cleanup still in place.

This commit is contained in:
scottjehl 2011-08-27 11:07:21 -04:00
parent ce5ce102dc
commit 10e2d5a61a

View file

@ -14,12 +14,12 @@ $.widget( "mobile.page", $.mobile.widget, {
},
_create: function() {
this.element.addClass( "ui-page ui-body-" + this.options.theme );
if ( this._trigger( "beforeCreate" ) === false ) {
return;
}
this.element.addClass( "ui-page ui-body-" + this.options.theme );
}
});