| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| #breaking Step function improvements.tar.gz | 2015-04-08 | 114.9 kB | |
| #breaking Step function improvements.zip | 2015-04-08 | 126.6 kB | |
| README.md | 2015-04-08 | 1.1 kB | |
| Totals: 3 Items | 242.7 kB | 0 | |
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. Before:
javascript
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 After:
javascript
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