manager: add purge method (delete all)
This commit is contained in:
parent
9422f0f9e3
commit
7eef10c5ce
1 changed files with 11 additions and 0 deletions
|
|
@ -100,6 +100,17 @@ WidgetManager.prototype.removeWidget = function(hash) {
|
|||
if (address && this.addressRoute[address][h2]) delete this.addressRoute[address][h2]
|
||||
}
|
||||
|
||||
WidgetManager.prototype.purge = function() {
|
||||
|
||||
this.widgets = {}
|
||||
|
||||
this.addressRoute = {}
|
||||
this.idRoute = {}
|
||||
this.linkIdRoute = {}
|
||||
|
||||
}
|
||||
|
||||
|
||||
WidgetManager.prototype.getWidgetBy = function(key, dict) {
|
||||
|
||||
var w = [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue