Open filipkis opened 5 years ago
P.S. I've originally tried to submit this PR as #557, but had trouble with jshint (there's a post commit hook that messes up the quotes), that's why I created a new one to have a cleaner history.
Any chance this gets merged into main branch. It's rather simple, but IMHO valuable addition, so it shouldn't be hard to review.
Currently if you specify an expression that's not just a reference to a function such as
ui-sortable-update=doSomething()
you have no way of accessing theevent
andui
arguments passed to callbacks.With this PR I've made those two arguments available as
$event
and$ui
parameters in the scope of the expression execution. So now you could doui-sortable-update=doSomething($event, $ui)
or evenui-sortable-update=doSomething($event, $ui.item.sortable)
.