- Add new assert syntax.

- Fix Icons size issues.
This commit is contained in:
Paulo Veiga
2011-07-27 14:33:02 -03:00
parent 0b67b42045
commit d06275f524
51 changed files with 231 additions and 210 deletions

View File

@@ -24,7 +24,7 @@ mindplot.DesignerActionRunner = new Class({
},
execute:function(command) {
core.assert(command, "command can not be null");
$assert(command, "command can not be null");
// Execute action ...
command.execute(this._context);
@@ -86,7 +86,7 @@ mindplot.CommandContext = new Class({
this._designer._removeNode(topic);
},
createTopic:function(model, isVisible) {
core.assert(model, "model can not be null");
$assert(model, "model can not be null");
var topic = this._designer._nodeModelToNodeGraph(model, isVisible);
return topic;
@@ -103,7 +103,7 @@ mindplot.CommandContext = new Class({
topic.disconnect(this._designer._workspace);
},
createRelationship:function(model) {
core.assert(model, "model cannot be null");
$assert(model, "model cannot be null");
var relationship = this._designer.createRelationship(model);
return relationship;
},