This API is reliable and breaking changes are unlikely.
Gets a reference to the current app. Use the currApp method in an extension to get a reference to the app currently displayed.
Reference to extension object.
Introduced in version 1.1.
var app = qlik.currApp(this); app.clearAll();