Sha256: 3c16c2d06310c92c9d595328692ca8e551148f832ea45f8880b7a4c852f0dacb

Contents?: true

Size: 903 Bytes

Versions: 15

Compression:

Stored size: 903 Bytes

Contents

app.debug "Starting WebApp Framework"

app.module_load = (name) ->
  app._bootstrap_list[name] = false

app.module_ready = (name) ->
  app._bootstrap_list[name] = true

app.load_modules = ->
  for module,status of app._bootstrap_list
    return if status == false

  app.debug 'Loaded modules: '
  for name of app._bootstrap_list
    app.debug ' - ' + name

  clearInterval app._bootstrap_list_loader
  delete app._bootstrap_list
  delete app._bootstrap_list_loader

  if app.main
    app.main()

app.boot = ->
  app.debug "Booting started..."
  app.debug 'Detected capabilities: ' + document.documentElement.className + ' ' + navigator.oscpu + ' ' + navigator.platform + navigator.userAgent
  app.debug 'Detected language: ' + detectLanguage()

  if app.document_domain
    document.domain = app.document_domain

  app._bootstrap_list_loader = setInterval( app.load_modules, 250 )
  app.load_modules()

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
arcabouco-0.2.16 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.15 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.14 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.13 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.12 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.11 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.10 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.9 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.8 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.7 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.6 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.5 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.4 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.3 lib/assets/js/core/boot.js.coffee
arcabouco-0.2.2 lib/assets/js/core/boot.js.coffee