mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Fix commands calling super class constructor.
This commit is contained in:
parent
58f1f741b0
commit
e67b2ba50b
@ -24,6 +24,7 @@ mindplot.commands.AddFeatureToTopicCommand = new Class({
|
|||||||
$assert(featureType, 'featureType can not be null');
|
$assert(featureType, 'featureType can not be null');
|
||||||
$assert(attributes, 'attributes can not be null');
|
$assert(attributes, 'attributes can not be null');
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._topicId = topicId;
|
this._topicId = topicId;
|
||||||
this._featureType = featureType;
|
this._featureType = featureType;
|
||||||
this._attributes = attributes;
|
this._attributes = attributes;
|
||||||
|
@ -19,8 +19,9 @@ mindplot.commands.AddRelationshipCommand = new Class({
|
|||||||
Extends:mindplot.Command,
|
Extends:mindplot.Command,
|
||||||
initialize: function(model) {
|
initialize: function(model) {
|
||||||
$assert(model, 'Relationship model can not be null');
|
$assert(model, 'Relationship model can not be null');
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._model = model;
|
this._model = model;
|
||||||
this._id = mindplot.Command._nextUUID();
|
|
||||||
},
|
},
|
||||||
execute: function(commandContext) {
|
execute: function(commandContext) {
|
||||||
var relationship = commandContext.createRelationship(this._model);
|
var relationship = commandContext.createRelationship(this._model);
|
||||||
|
@ -21,6 +21,8 @@ mindplot.commands.AddTopicCommand = new Class(
|
|||||||
Extends:mindplot.Command,
|
Extends:mindplot.Command,
|
||||||
initialize: function(model, parentTopicId, animated) {
|
initialize: function(model, parentTopicId, animated) {
|
||||||
$assert(model, 'Model can not be null');
|
$assert(model, 'Model can not be null');
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._model = model;
|
this._model = model;
|
||||||
this._parentId = parentTopicId;
|
this._parentId = parentTopicId;
|
||||||
this._id = mindplot.Command._nextUUID();
|
this._id = mindplot.Command._nextUUID();
|
||||||
|
@ -23,6 +23,7 @@ mindplot.commands.ChangeFeatureToTopicCommand = new Class({
|
|||||||
$assert($defined(featureId), 'featureId can not be null');
|
$assert($defined(featureId), 'featureId can not be null');
|
||||||
$assert($defined(attributes), 'attributes can not be null');
|
$assert($defined(attributes), 'attributes can not be null');
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._topicId = topicId;
|
this._topicId = topicId;
|
||||||
this._featureId = featureId;
|
this._featureId = featureId;
|
||||||
this._attributes = attributes;
|
this._attributes = attributes;
|
||||||
|
@ -21,6 +21,7 @@ mindplot.commands.DeleteCommand = new Class({
|
|||||||
initialize: function(topicIds, relIds) {
|
initialize: function(topicIds, relIds) {
|
||||||
$assert($defined(topicIds), 'topicIds can not be null');
|
$assert($defined(topicIds), 'topicIds can not be null');
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._relIds = relIds;
|
this._relIds = relIds;
|
||||||
this._topicIds = topicIds;
|
this._topicIds = topicIds;
|
||||||
this._deletedTopicModels = [];
|
this._deletedTopicModels = [];
|
||||||
|
@ -25,6 +25,7 @@ mindplot.commands.DragTopicCommand = new Class({
|
|||||||
if ($defined(parentTopic))
|
if ($defined(parentTopic))
|
||||||
this._parentId = parentTopic.getId();
|
this._parentId = parentTopic.getId();
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._position = position;
|
this._position = position;
|
||||||
this._order = order;
|
this._order = order;
|
||||||
this._id = mindplot.Command._nextUUID();
|
this._id = mindplot.Command._nextUUID();
|
||||||
@ -58,7 +59,7 @@ mindplot.commands.DragTopicCommand = new Class({
|
|||||||
// Set position ...
|
// Set position ...
|
||||||
topic.setPosition(this._position);
|
topic.setPosition(this._position);
|
||||||
} else {
|
} else {
|
||||||
$assert("Illegal commnad state exception.");
|
$assert("Illegal command state exception.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Finally, connect topic ...
|
// Finally, connect topic ...
|
||||||
|
@ -22,11 +22,11 @@ mindplot.commands.GenericFunctionCommand = new Class({
|
|||||||
$assert(commandFunc, "commandFunc must be defined");
|
$assert(commandFunc, "commandFunc must be defined");
|
||||||
$assert($defined(topicsIds), "topicsIds must be defined");
|
$assert($defined(topicsIds), "topicsIds must be defined");
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._value = value;
|
this._value = value;
|
||||||
this._topicsIds = topicsIds;
|
this._topicsIds = topicsIds;
|
||||||
this._commandFunc = commandFunc;
|
this._commandFunc = commandFunc;
|
||||||
this._oldValues = [];
|
this._oldValues = [];
|
||||||
this._id = mindplot.Command._nextUUID();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
execute: function(commandContext) {
|
execute: function(commandContext) {
|
||||||
|
@ -21,6 +21,7 @@ mindplot.commands.MoveControlPointCommand = new Class({
|
|||||||
$assert(ctrlPointController, 'line can not be null');
|
$assert(ctrlPointController, 'line can not be null');
|
||||||
$assert($defined(point), 'point can not be null');
|
$assert($defined(point), 'point can not be null');
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._ctrlPointControler = ctrlPointController;
|
this._ctrlPointControler = ctrlPointController;
|
||||||
this._line = ctrlPointController._line;
|
this._line = ctrlPointController._line;
|
||||||
this._controlPoint = this._ctrlPointControler.getControlPoint(point).clone();
|
this._controlPoint = this._ctrlPointControler.getControlPoint(point).clone();
|
||||||
@ -36,7 +37,6 @@ mindplot.commands.MoveControlPointCommand = new Class({
|
|||||||
this._endPoint = this._line.getLine().getTo().clone();
|
this._endPoint = this._line.getLine().getTo().clone();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this._id = mindplot.Command._nextUUID();
|
|
||||||
this._point = point;
|
this._point = point;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ mindplot.commands.RemoveFeatureFromTopicCommand = new Class({
|
|||||||
$assert($defined(topicId), 'topicId can not be null');
|
$assert($defined(topicId), 'topicId can not be null');
|
||||||
$assert(featureId, 'iconModel can not be null');
|
$assert(featureId, 'iconModel can not be null');
|
||||||
|
|
||||||
|
this.parent();
|
||||||
this._topicId = topicId;
|
this._topicId = topicId;
|
||||||
this._featureId = featureId;
|
this._featureId = featureId;
|
||||||
this._oldFeature = null;
|
this._oldFeature = null;
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
<map name="welcome" version="tango">
|
|
||||||
<topic central="true" text="Welcome To WiseMapping" id="1" fontStyle=";;#dfcfe6;;;" bgColor="#0a0a08">
|
|
||||||
<topic position="178,-130" order="0" text="Try it Now!" id="11" fontStyle=";;#ffffff;;;" bgColor="#250be3"
|
|
||||||
brColor="#080559">
|
|
||||||
<topic position="272,-156" order="0" text="Double Click" id="12" fontStyle=";;#001be6;;italic;"/>
|
|
||||||
<topic position="274,-130" order="1" text=" INS to insert" id="13" fontStyle=";;#001be6;;italic;"/>
|
|
||||||
<topic position="285,-104" order="2" text="Drag map to move" id="14" fontStyle=";;#001be6;;italic;"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="-197,-68" order="1" id="2" fontStyle=";;#104f11;;;" bgColor="#d9b518">
|
|
||||||
<text><![CDATA[Productivity sss sss]]></text>
|
|
||||||
<icon id="chart_pie"/>
|
|
||||||
<note><![CDATA[hola]]></note>
|
|
||||||
<topic position="-325,-94" order="0" text="Share your ideas" id="3">
|
|
||||||
<icon id="bulb_light_on"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="-314,-68" order="1" text="Brainstorming" id="4"/>
|
|
||||||
<topic position="-298,-42" order="2" text="Visual " id="5"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="185,-39" order="2" text="Mind Mapping" id="6" fontStyle=";;#602378;;;" bgColor="#edabff">
|
|
||||||
<topic position="303,-78" order="0" text="Share with Collegues" id="7"/>
|
|
||||||
<topic position="275,-52" order="1" text="Online" id="8"/>
|
|
||||||
<topic position="299,-26" order="2" text="Anyplace, Anytime" id="9"/>
|
|
||||||
<topic position="277,0" order="3" text="Free!!!" id="10"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="-183,23" order="3" text="Web 2.0 Tool" id="22" fontStyle=";;#0c1d6b;;;" bgColor="#add1f7">
|
|
||||||
<topic position="-281,-16" order="0" text="Collaborate" id="23"/>
|
|
||||||
<topic position="-302,10" order="1" text="No plugin required" id="24">
|
|
||||||
<icon id="conn_disconnect"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="-271,36" order="2" text="Share" id="25"/>
|
|
||||||
<topic position="-282,62" order="3" text="Easy to use" id="26"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="171,91" order="4" text="Features" id="15">
|
|
||||||
<topic position="266,26" order="0" text="Links to Sites" id="16" fontStyle=";6;;;;">
|
|
||||||
<link url="http://www.digg.com" type="url"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="245,52" order="1" text="Fonts" id="17"/>
|
|
||||||
<topic position="255,78" order="2" text="Topic Color" id="18"/>
|
|
||||||
<topic position="260,104" order="3" text="Topic Shapes" shape="line" id="19"/>
|
|
||||||
<topic position="252,130" order="4" text="Icons" id="20">
|
|
||||||
<icon id="object_rainbow"/>
|
|
||||||
</topic>
|
|
||||||
<topic position="272,156" order="5" text="History Changes" id="21">
|
|
||||||
<icon id="arrowc_turn_left"/>
|
|
||||||
</topic>
|
|
||||||
</topic>
|
|
||||||
<topic position="-176,91" order="5" id="27"/>
|
|
||||||
</topic>
|
|
||||||
</map>
|
|
Loading…
Reference in New Issue
Block a user