       if not callback.done and (not state or (/loaded|complete/).test(state))
         callback.done = true
         callback()
-
     _container.appendChild _element
   else
     callback()
-onReady = (callback) ->
-  if domLoaded_
-    callback()
-  else
-    internalReadyCallback_ = callback
-    bindReady()
 
 domDidLoad = ->
   ready = 0

AppNotLoaded = 0
LoadingApp = 1
AppLoaded = 2
loadApp = null
readyObservers_ = []
preparesObservers_ = []
appLoadingStatus_ = AppNotLoaded
internalReadyCallback_ = null
domLoaded_ = false
prepareCalls_ = []
forceLoadApp_ = false


isFunction = (arg) ->
  typeof arg is "function"

    obs[i]()
    i++
  obs.length = 0

loadScript = (src, callback) ->
  if src
