 window.TukTuk.Modal = do (tk = TukTuk) ->
 
-  lock = undefined
+  lock  = undefined
   modal = undefined
 
   ###

    tk.dom("[data-tuktuk-modal]").on "click", ->
      TukTuk.Modal.show(tk.dom(this).attr('data-tuktuk-modal'))

    tk.dom(document.body).append """
      <div data-tuktuk="lock" data-loading="false">
        <div class="loading"></div>
      </div>
      """
    tk.dom("[data-tuktuk=lock]").on "click", (event) ->
      loading = lock.attr("data-loading")
      TukTuk.Modal.hide() unless event.target is modal or loading is "true"

    lock = tk.dom("[data-tuktuk=lock]").first()
  )()

  show    : show
  hide    : hide
  loading : loading
  alert   : alert
