3 ms·
Actually you can remove it. For example: $('.some-behavior').each(function () { this.behavior = null; }); I'll make sure to add a prettier way of doing this i
by rodp 17y ago
Actually you can remove it. For example:
$('.some-behavior').each(function () { this.behavior = null; });
I'll make sure to add a prettier way of doing this in the next release.
As for the multiple behaviors issue - it's a philosophical question: Should it be possible for one element to be an instance of more than one behavior or should we let the developer "mix" several behaviors into one, which is simple and not really that hard to do? I chose the latter.