mirror of
https://github.com/esiur/iui.git
synced 2026-04-04 06:58:22 +00:00
Refs
This commit is contained in:
@@ -5,6 +5,22 @@ export default class BindingList extends Array {
|
||||
super();
|
||||
this.target = target;
|
||||
this.scope = scope;
|
||||
this.events = [];
|
||||
}
|
||||
|
||||
destroy(){
|
||||
for(var i = 0; i < this.length; i++)
|
||||
this[i].unbind();
|
||||
this.scope = {};
|
||||
this.target = null;
|
||||
for(var i = 0; i < this.events.length; i++)
|
||||
this.target.removeEventListener(this.events[i].name, this.events[i].handle);
|
||||
}
|
||||
|
||||
addEvent(name, handle)
|
||||
{
|
||||
this.target.addEventListener(name, handle);
|
||||
this.events.push({name, handle})
|
||||
}
|
||||
|
||||
getArgumentsNames(){
|
||||
|
||||
Reference in New Issue
Block a user