Sha256: 8c4b0e84f8c30218f4ec0974aaee6fe5e5fa47a867ca9054823c53c05730c0a5
Contents?: true
Size: 1.2 KB
Versions: 11
Compression:
Stored size: 1.2 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2010 Sprout Systems, Inc. and contributors. // Portions ©2008-2010 Apple Inc. All rights reserved. // License: Licensed 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
11 entries across 11 versions & 1 rubygems