enepomnyaschih/utils — Issue #8: Lib: Delegates must remember parent function and scope
Author: enepomnyaschih
Created: 2011-12-03 08:03:10+00:00
State: open

Delegates must keep meta information about source function and scope to support

```javascript
this.el.bind("click", this.onClick.as(this, "\0", data));
...
this.el.unbind("click", this.onClick, this); // unbinds this specific handler
-- or --
this.el.unbind("click", this.onClick); // unbinds all "onClick" handlers of current class instances
-- or --
this.el.purge(this); // unbinds all handlers of current instance
```