QUnit.test("ViewManager works properly!", function () {
        var currentView = main;

        viewManager.addViews([
           main,
           game
        ]);
        main.show();

        QUnit.ok(currentView.$el.css('display') === 'block' && game.$el.css('display') === 'none');
    });
Beispiel #2
0
 defaultAction: function () {
     var mainView = require('views/main');
     mainView.show();
     this.currentView = mainView;
 },
Beispiel #3
0
 defaultAction: function () {
     mainView.show();
 }