     try
       toplevel = not _window.frameElement?
     doScrollCheck()  if doc.docElement and doc.docElement.doScroll and toplevel
+
 doScrollCheck = ->
   unless domLoaded_
     try

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
