nl_tokens: deviceready Event Handler The scope of this is the event . In order to call the receivedEvent function we must explicity call app . receivedEvent ( ... ) ;
pl_tokens: function ( ) { $ ( "#btnStartMonitor" ) . click ( app . startMonitorMode ) ; $ ( "#btnStopMonitor" ) . click ( app . stopMonitorMode ) ; $ ( document ) . <mask> ( "mobileinit" , function ( ) { app . receivedEvent ( 'deviceready' ) ; } ) ; $ . getScript ( 'js/jquery.mobile-1.4.4.min.js' ) ; }