       throw "You don't have defaultOptions or templates variables"
       return false
 
+    # jQuery
     @options = $.extend defaultOptions, options
 
     ###


      @updateDimensions image.width, image.height

      $(@container).css
        'background-image': 'url(' + image.source + ')'
        '-ms-filter': "\"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + image.source + "',sizingMethod='scale')\""

      @header.innerHTML = if image.title then templates['image-title'].replace '{{title}}', image.title else ''
    @

        @thumbnails.innerHTML = ''
        $(@overlay.querySelector('.choco-thumbnails-toggle')).off 'click'

      # jQuery
      $(window).off 'resize'

      @current = null
