millermedeiros / js-signals

Custom Event/Messaging system for JavaScript inspired by AS3-Signals
http://millermedeiros.github.com/js-signals/
1.97k stars 179 forks source link

make `Signal.remove()` accept a `SignalBinding` as well #7

Closed millermedeiros closed 13 years ago

millermedeiros commented 13 years ago

not a good idea, will have to check if it is an Object or Function all the times (unnecessarily) and if you have a reference to the SignalBinding you can just call SignalBinding.detach() (way easier)

PS: this entry was just to remind myself why I created the detach method, I'm sure in a couple months someone would ask for the same thing and I wouldn't remind why I didn't implemented it.