MDL-27309 Blocks: command node is taken from dockitem during restore

This commit is contained in:
Rajesh Taneja
2012-10-04 15:27:27 +08:00
parent c5575c63b8
commit 32d5bad1e1
+1 -1
View File
@@ -958,7 +958,7 @@ M.core_dock.genericblock.prototype = {
placeholder.replace(this.Y.Node.getDOMNode(this.cachedcontentnode));
this.cachedcontentnode = this.Y.one('#'+this.cachedcontentnode.get('id'));
var commands = this.cachedcontentnode.one('.title .commands');
var commands = dockitem.commands;
if (commands) {
commands.all('.hidepanelicon').remove();
commands.all('.moveto').remove();