reset Method

This command causes the Accelerated Canvas App Game Interface view to be completely reset.

intel.xdk.canvas.reset();

Description:

This command causes the Accelerated Canvas App Game Interface view to be completely reset. Use this method, followed by the load method to reload the page or when loading a brand new page.

Available Platforms:

Example:


intel.xdk.canvas.load("index.js");
intel.xdk.canvas.reset();
intel.xdk.canvas.load("index2.js");
                        
For more complete information about compiler optimizations, see our Optimization Notice.