Fix several issues.

This commit is contained in:
Paulo Veiga
2011-09-09 21:53:41 -03:00
parent 2a4d96151b
commit d84384364c
15 changed files with 124 additions and 155 deletions

View File

@@ -96,10 +96,9 @@ mindplot.LocalActionDispatcher = new Class({
},
changeTextToTopic : function(topicsIds, text) {
$assert(topicsIds, "topicsIds can not be null");
$assert($defined(topicsIds), "topicsIds can not be null");
var commandFunc = function(topic, value) {
var result = topic.getText();
topic.setText(value);
return result;
@@ -187,7 +186,7 @@ mindplot.LocalActionDispatcher = new Class({
this.execute(command);
},
changeShapeToTopic : function(topicsIds, shapeType) {
changeShapeTypeToTopic : function(topicsIds, shapeType) {
$assert(topicsIds, "topicsIds can not be null");
$assert(shapeType, "shapeType can not be null");
@@ -242,7 +241,7 @@ mindplot.CommandContext = new Class({
},
findTopics:function(topicsIds) {
$assert(topicsIds, "topicsIds can not be null");
$assert($defined(topicsIds), "topicsIds can not be null");
if (!(topicsIds instanceof Array)) {
topicsIds = [topicsIds];
}