Sha256: 80cc4112d58c0aeb275e5670527cf6070a48eb5758f7a4848f7912f65cd633c1

Contents?: true

Size: 1.18 KB

Versions: 27

Compression:

Stored size: 1.18 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
/*globals TestControls */

/** @class

  (Document Your Controller Here)

  @extends SC.Object
*/
TestControls.categoryController = SC.ObjectController.create(
/** @scope SampleControls.categoryController.prototype */ {
  contentBinding: "TestControls.categoriesController.selection",
  contentBindingDefault: SC.Binding.single(),
  
  nowShowing: "welcome",
  
  delayShow: function() {
    // wait a moment before loading to let things finish...
    this.set("nowShowing", this.get("show") || "welcome");
    this.hideMasterPicker();
  }.observes("show"),
  
  hideMasterPicker: function() {
    TestControls.mainPage.mainPane.split.hideMasterPicker();
  },
  
  useDarkTheme: NO,
  themeName: function() {
    return this.get('useDarkTheme') ? 'dark' : 'ace';
  }.property('useDarkTheme').cacheable()
}) ;

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
sproutcore-1.8.2.1 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.8.1 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.8.0 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.1 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.beta.3-java lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.beta.3 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js