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

This commit is contained in:
Rajesh Taneja 2012-10-04 15:17:42 +08:00
parent 5d6285c220
commit ecc8ce88c6

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();