Skip to content

2.0.0-rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@sylouuu sylouuu released this 06 May 19:21
· 192 commits to master since this release

WARNING: THIS VERSION TOTALLY BREAKS THE BACKWARDS COMPATIBILITY

  • Call the plugin in $(window).load()

Options

  • Call the plugin on the image container instead of a thumbs list
  • Remove main object including main.container, main.cssClass and main.insertion
  • Removed caption
  • Rename controls.enable to controls.show
  • Change controls.keys from true to false by default
  • Add thumbs option which takes an anchors collection
  • Add imageClass to replace main.cssClass

Effect

  • Change effect option type from string to object
  • Add effect.provider
  • Add effect.name

Events

  • Prefix all events name by on
  • Remove events.onComplete
  • Add events.onImageClick
  • Add events.onImageShow
  • Add events.onImageShown
  • Add events.onImageHide
  • Add events.onImageHidden
  • Add events.onError
  • Add events.onWarning
  • Add events.onSuccess
  • All events can be listened outside the options

Public methods (new)

  • Add rebuild()
  • Add getThumbs(index)
  • Add setEffect(effect)
  • Add pause()
  • Add play()
  • Add isPlaying()
  • Add goPrev()
  • Add goNext()
  • Add goTo(index)

Other

  • Change data-desoslide-caption to data-desoslide-caption-title
  • Inserted caption title if data-desoslide-caption-title is specified
  • Change data-desoslide-href to data-desoslide-caption-link
  • Inserted caption link if data-desoslide-caption-link is specified
  • Remove spinner
  • Fix the overlay positioning when image has borders

Tests

  • Use gulp-qunit
  • Use Travis-CI