Sha256: 6c181728d8edfb1a93fcb63a4877e4c8cfe2ad40ea3a51427b4a0d2aea9f60d8

Contents?: true

Size: 1.2 KB

Versions: 9

Compression:

Stored size: 1.2 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
//            Portions ©2008-2009 Apple, Inc. All rights reserved.
// License:   Licened under MIT license (see license.js)
// ==========================================================================
/*globals TestRunner */

sc_require('states/ready');

/**
  Initial state of application before it has loaded targets.
*/
TestRunner.READY_DETAIL = SC.Responder.create({
  
  nextResponder: TestRunner.READY,
  
  /**
    Show laoding targets view.
  */
  didBecomeFirstResponder: function() {
    TestRunner.set('currentScene', 'testsDetail');
    
    var target = TestRunner.sourceController.get('selection').firstObject();
    var test   = TestRunner.detailController.get('content');
    TestRunner.updateRoute(target, test, YES);
  },
  
  willLoseFirstResponder: function() {
    TestRunner.set('currentScene', null);
  },
  
  /**
    Invoked when you click "back"
  */
  back: function() {
    TestRunner.detailController.set('content', null);
    TestRunner.makeFirstResponder(TestRunner.READY_LIST);
  }
  
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.20090721145282 frameworks/sproutcore/apps/tests/states/ready_detail.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/apps/tests/states/ready_detail.js