calendar MDL-21355 Fixed bug when using undock all button after undocking an individual block
This commit is contained in:
@@ -1569,6 +1569,7 @@ blocks.dock = {
|
||||
return false;
|
||||
}
|
||||
this.items[uid].remove();
|
||||
delete this.items[uid];
|
||||
this.fire('dock:itemremoved', uid);
|
||||
this.count--;
|
||||
if (this.count===0) {
|
||||
@@ -1588,7 +1589,7 @@ blocks.dock = {
|
||||
remove_all:function() {
|
||||
for (var i in this.items) {
|
||||
this.items[i].remove();
|
||||
this.items[i] = null;
|
||||
delete this.items[i];
|
||||
}
|
||||
Y.fire('dock:toberemoved');
|
||||
this.items = [];
|
||||
|
||||
Reference in New Issue
Block a user