       $(@).trigger('destroy.windoze')
     readDataAttributes: ->
       $el = @$el
-      attrs = ['container', 'delegate', 'init_shown', 'relocate_modal', 'animation']
+      attrs = ['container', 'delegate', 'init_shown', 'lightbox', 'relocate_modal', 'animation']
       detected_attrs = attrs.map((a) -> $el.attr("data-wdz-#{a}"))
       for attr, i in detected_attrs
         if attr

    relocate_modal: true
    allow_outside_click: true
    allow_esc: true
    open: ->
      $(@).trigger('open.windoze')
    close: ->

      return if !href or href == '#'
      @$modal.addClass('wdz-loading')
      @fireCallback('beforeLoad')
      if href.match(/\.(gif|jpg|jpeg|png)$/) || @lightbox
        @loadImage href, e
      else
        @loadRemote href, e
