mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-24 08:04:43 +00:00
Allow preventing the default initialization for pages by canceling the pagebeforecreate event. Fixes #105.
This commit is contained in:
parent
74a66af37b
commit
5b2bbd7b9f
1 changed files with 3 additions and 1 deletions
|
|
@ -4,7 +4,9 @@ $.widget( "mobile.page", $.mobile.widget, {
|
|||
options: {},
|
||||
|
||||
_create: function() {
|
||||
this._trigger( "beforeCreate" );
|
||||
if ( this._trigger( "beforeCreate" ) === false ) {
|
||||
return;
|
||||
}
|
||||
|
||||
//some of the form elements currently rely on the presence of ui-page and ui-content
|
||||
// classes so we'll handle page and content roles outside of the main role processing
|
||||
|
|
|
|||
Loading…
Reference in a new issue