calendar MDL-21355 Fixed bug when using undock all button after undocking an individual block

This commit is contained in:
Sam Hemelryk
2010-01-18 02:56:17 +00:00
parent a993ab8ef0
commit 8aa92f9efb
+2 -1
View File
@@ -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 = [];