assets/javascripts/sandbox/application.coffee in luca-0.9.2 vs assets/javascripts/sandbox/application.coffee in luca-0.9.4

- old
+ new

@@ -1,37 +1,48 @@ -Sandbox.Application = Luca.Application.extend - name: 'sandbox_application' +_.def('Sandbox.Application').extends('Luca.Application').with + + autoBoot: true + + name: 'SandboxApp' + + router: "Sandbox.Router" + el: '#viewport' + fluid: true topNav:'top_navigation' - useKeyRouter: true + useKeyHandler: false keyEvents: meta: forwardslash: "developmentConsole" + collectionManager: + initialCollections: ["components"] + components:[ ctype: 'controller' name: 'pages' components:[ name: "main" + className:"marketing-content" bodyTemplate: 'main' , - name :"class_browser" - ctype: "class_browser" + name: "intro" + className:"marketing-content" + bodyTemplate: "readme" , - name: "component_tester" - ctype: "component_tester" + name: "build" + ctype: "builder" + , + name: "docs" + ctype: "docs_controller" ] ] - initialize: (@options={})-> - Luca.Application::initialize.apply @, arguments - @router = new Sandbox.Router(app: @) - developmentConsole: ()-> @developmentConsole = Luca "coffeescript-console", ()-> new Luca.tools.DevelopmentConsole(name:"coffeescript-console") unless @consoleContainerAppended @@ -40,12 +51,7 @@ @consoleContainerAppended = true @developmentConsole.render() $('#devtools-console-wrapper').modal(backdrop:false,show:true) - afterRender: ()-> - @_super("afterRender", @, arguments) - -$ do -> - (window || global).SandboxApp = new Sandbox.Application() - SandboxApp.boot() - prettyPrint() +$ -> + new Sandbox.Application() \ No newline at end of file