JD2022-TU1/data/EngineData/JustDanceTools/app/application.coffee

32 lines
959 B
CoffeeScript

Marionette = require 'backbone.marionette'
Radio = require 'backbone.radio'
Shotgun = require './shotgun'
RootLayout = require './application.rootlayout.view.coffee'
ProjectsCollection = require './projects/projects.collection.coffee'
# ProjectsCollection = require './map/map.collection.coffee'
class Application extends Marionette.Application
region: 'body'
initialize: ( ) ->
# projects = new ProjectsCollection
# SG = new Shotgun
# console.time 'getProjects'
#
# SG.getProjects()
# .then ( data ) ->
# console.timeEnd 'getProjects'
#
# Radio.channel('app').reply('getProjectsCollection', projects)
# Radio.channel('app').reply('getShotgun', SG)
onBeforeStart: ( ) ->
console.log "Starting the Application ..."
onStart: ( ) ->
console.log "Application has started ..."
@showView(new RootLayout)
module.exports = Application