       status : (msg) -> _pleaseWait.status(msg)
     }
 
-  window.pleaseWait = new PleaseWait()+  exports.pleaseWait = new PleaseWait()
do ->
  "use strict"

  PleaseWait = ->
    getTransitionEvent = ->
      el = document.createElement('fakeelement')

            @_loadingDone()
        else @_loadingDone()

      load: (options = {}) ->
        @_options                          = @_setOptions(options)
        @_loadingDiv                       = document.createElement("header")
        @_loadingDiv.className             = "pg-loading-screen"
        @_loadingDiv.style.backgroundColor = @_options.backgroundColor
        @_loadingDiv.innerHTML             = @_options.template
        spinnerTemplate                    = null
        spinner                            = @_loadingDiv.getElementsByClassName("pg-loading-spinner")[0]
        logo                               = @_loadingDiv.getElementsByClassName("pg-loading-logo")[0]
        logo.src                           = @_options.logo

        for script in document.scripts
          if script.id == "pgLoadingSpinner"
