... | ... |
@@ -11,7 +11,11 @@ var pageClass = { |
11 | 11 |
del : func (id = nil) { |
12 | 12 |
if (id != nil and typeof(id) == 'scalar') { |
13 | 13 |
delete(me.state, id); |
14 |
- id = [ id ]; |
|
14 |
+ var _id = id ~ '-'; |
|
15 |
+ id = []; |
|
16 |
+ foreach (var w; keys(me.window)) |
|
17 |
+ if (find(_id, w) == 0) |
|
18 |
+ append(id, w); |
|
15 | 19 |
} |
16 | 20 |
else { |
17 | 21 |
foreach (var s; keys(me.state)) |