Delete from the right array when unregistered itemTrees
This commit is contained in:
parent
f37ab47b39
commit
60ada26e8d
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,7 @@ Scholar.Notifier = new function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function unregisterItemTree(hash){
|
function unregisterItemTree(hash){
|
||||||
_unregister('columnTree', hash);
|
_unregister('itemTree', hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -74,6 +74,7 @@ Scholar.Notifier = new function(){
|
||||||
}
|
}
|
||||||
|
|
||||||
function _unregister(type, hash){
|
function _unregister(type, hash){
|
||||||
|
Scholar.debug('Unregistering ' + type + ' in notifier with hash ' + hash, 4);
|
||||||
delete _observers[type][hash];
|
delete _observers[type][hash];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue