Sha256: fb06fc34c1c1c165cb9bf4bf86ebc65adf9b6587b6537d0917d2e609bebceeeb

Contents?: true

Size: 853 Bytes

Versions: 9

Compression:

Stored size: 853 Bytes

Contents

// ==========================================================================
// Project:   TestRunner.targetController
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals TestRunner */

/** @class

  The currently selected target.  Used by the testsController to get the 
  tests of the target.  May be used by other parts of the app to control the
  selected target.

  @extends SC.ObjectController
*/
TestRunner.targetController = SC.ObjectController.create(
/** @scope TestRunner.targetController.prototype */ {

  contentBinding: 'TestRunner.sourceController.selection',
  
  nameDidChange: function() {
    var name = this.get('name');
    if (name) name = name.slice(1);
    document.title = "_Window Title".loc(name || '_No Target'.loc());  
  }.observes('name')
  
}) ;

Version data entries

9 entries across 9 versions & 1 rubygems

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