Sha256: f39d1d66eb72ec1fe12952f542102d15c6e13fb11a4ed6bae6941c16d13add4f

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

/*globals Docs */

// This is the function that will start your app running.  The default
// implementation will load any fixtures you have created then instantiate
// your controllers and awake the elements on your page.
//
// As you develop your application you will probably want to override this.
// See comments for some pointers on what to do next.
//
Docs.main = function main() {

  Docs.getPath('mainPage.mainPane').append() ;

  var query  = SC.Query.local(Docs.Class);
  var output = Docs.store.find(query);

  Docs.buildIndex(output);

  Docs.allClassesRecordArray = output = output.sortProperty('displayName');
  Docs.classesController.set('content',output);

  SC.routes.add(':class/:symbol',Docs,'routeToSymbol');
  SC.routes.add(':class',Docs,'routeToClass');

  if(!window.location.hash){
    Docs.classesController.selectObject(output.firstObject());
  }

  var view = Docs.getPath('mainPage.mainPane.sidebar.classList.contentView');
  view.becomeFirstResponder();


} ;

function main() { Docs.main(); }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sc-docs-0.0.3 lib/sc_docs/docs/apps/docs/main.js
sc-docs-0.0.2 lib/sc_docs/docs/apps/docs/main.js
sc-docs-0.0.1 lib/sc_docs/docs/apps/docs/main.js