progressbar.js v0.8.0 Release Notes

Release Date: 2015-04-08 // over 7 years ago
  • API breaking change for step function! If you haven't used option.attachment , nothing has changed. Most likely you don't need to change anything.

    โœ… Thanks to @prodigitalson who provided fixes to step function and added a lot of tests.

    All changes:

    API breaking change to step function:

    ๐Ÿš€ Before this release, Shape was passed as an attachment to Path. If you overrode the attachment, there was no way to get reference to the Shape inside step function.

    step: function(state, attachment) { // Do step}

    Now you can always reference to the Shape or Path inside the step function. Reference to self is passed as second parameter. User's custom attachment is now passed as the third parameter

    step: function(state, self, attachment) { // self is reference to Shape or Path// Do step} 

    ๐Ÿ”ฆ Expose SVG path element as .path attribute for Path objects. That is consistent with Shape objects.

    ๐Ÿ‘‰ Make it possible to pass selector as a string to Path object. Earlier only direct element was accepted.

    โœ… More tests