Sha256: c01094b67adc915fd34959e49616aa84eae43f190d16ef421c099d399a204422

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2010 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

5 entries across 5 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/apps/test_controls/controllers/category.js