Open gabrielhpugliese opened 10 years ago
To differentiate between delegated and directly bound events, we'll probably need a syntax like this:
this.off('click', {
buttonSelector: this.calculateShippingPrice
});
What if I don't want to call this.calculateShippingPrice
. How would the syntax be?
This may be not that straightforward, because all we have is a function (the rules live in its closure). https://github.com/flightjs/flight/blob/master/lib/utils.js#L235
Yeah, this'll definitely require some redoing of the delegation stuff.
As mentioned here, it would be nice to unbind events of specific child elements inside components, like: