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

      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

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

loadScript = (src, callback) ->
  if src
