Skip to content

Implement restart

Choose a tag to compare

@HazemKhaled HazemKhaled released this 24 Mar 13:36
· 28 commits to master since this release

Now we can use destroy to restart the app

var restart = function() {

    // Close current stack
    Alloy.Globals.windowStack.destroy(Alloy.Globals.drawer, function() {

        // open drawer window from window stack
        Alloy.createController('index').getView();
    });
};