Example #1
0
    setupController: function(controller, model) {
        if (Ember.isEmpty(model.versionHistory)) {
            ProgressIndicator.start();
            var fullModel = App.packages.find(model.id, model.version);
            fullModel.then(function(m) {
                model.setProperties(m);
                ProgressIndicator.done();
            });
        }
        else {
            ProgressIndicator.done();
        }

        controller.set('model', model);
    }
Example #2
0
 .then(function(model) {
     completed = true;
     ProgressIndicator.done();
     return model;
 });
Example #3
0
 fullModel.then(function(m) {
     model.setProperties(m);
     ProgressIndicator.done();
 });