switch to explicit false check to avoid undefined issues

This commit is contained in:
John Bender 2012-01-04 13:14:43 -08:00
parent b47d9ba24e
commit 22504c7613

View file

@ -17,7 +17,7 @@ $.widget( "mobile.page", $.mobile.widget, {
_create: function() {
// if false is returned by the callbacks do not create the page
if( !this._trigger( "beforecreate" ) ){
if( this._trigger( "beforecreate" ) === false ){
return false;
}