Fix commands calling super class constructor.

This commit is contained in:
Paulo Gustavo Veiga
2012-02-27 19:25:14 -03:00
parent 58f1f741b0
commit e67b2ba50b
10 changed files with 12 additions and 53 deletions

View File

@@ -25,6 +25,7 @@ mindplot.commands.DragTopicCommand = new Class({
if ($defined(parentTopic))
this._parentId = parentTopic.getId();
this.parent();
this._position = position;
this._order = order;
this._id = mindplot.Command._nextUUID();
@@ -58,7 +59,7 @@ mindplot.commands.DragTopicCommand = new Class({
// Set position ...
topic.setPosition(this._position);
} else {
$assert("Illegal commnad state exception.");
$assert("Illegal command state exception.");
}
// Finally, connect topic ...