HTML and CSS Reference
In-Depth Information
app . oncheckpoint = function
function ( args ) {
// TODO: This application is about to be suspended. Save any state
// that needs to persist across suspensions here. You might use the
// WinJS.Application.sessionState object, which is automatically
// saved and restored across suspension. If you need to complete an
// asynchronous operation before your application is suspended, call
// args.setPromise().
app . start ();
Finally,edit GameUtilities.js andchange canvasSupport() toalwaysreturn true .Wedo
this because the Canvas will always be available, and we removed the reference to moder-
izr.js in default.html .
function canvasSupport () {
return true
true ;
test. (See Figure 11-10 . ) Be sure to have Local Machine selected from the drop-down menu.
Figure 11-10. Test application in Visual Studio
When you test the app, you should see what is shown in Figure 11-11 .
Search WWH ::

Custom Search