switch to explicit false check to avoid undefined issues

This commit is contained in:
John Bender 2012-01-04 13:14:43 -08:00 committed by scottjehl
parent 921ab705f5
commit b3048e4be5

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