Sha256: af5d9a967e16efcb85b3eeffb7e9ea9fac2d44969e66eae36fd1f1c6fc874ba2

Contents?: true

Size: 587 Bytes

Versions: 16

Compression:

Stored size: 587 Bytes

Contents

#= require ./base

class Ultimate.Backbone.App
  @App: null

  name: null

  Models: {}
  Collections: {}
  Routers: {}
  Views: {}

  scopes: ["Models", "Collections", "Routers", "Views"]

  constructor: (name = null) ->
    Ultimate.Backbone.debug ".App.constructor()", @
    if @constructor.App
      throw new Error("Can't create new Ultimate.Backbone.App because the single instance has already been created");
    else
      @constructor.App = @
      @name = name
      _.extend @[scope], Backbone.Events  for scope in @scopes



_.extend Ultimate.Backbone.App::, Backbone.Events

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ultimate-base-0.5.0.0 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.4.1.0 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.4.0.1 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.4.0.0 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.5.0 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.4.0 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.3.0 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.2.1 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.2 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.1.1 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.1 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.0 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.3.0.alpha app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.2.4 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.2.3.2 app/assets/javascripts/ultimate/backbone/app.js.coffee
ultimate-base-0.2.3 app/assets/javascripts/ultimate/backbone/app.js.coffee