mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-23 11:53:48 +01:00
- Fix actions over the central topic.
This commit is contained in:
parent
dfc3bbdbe6
commit
4d3baac09d
@ -19,7 +19,7 @@
|
|||||||
mindplot.commands.ChangeLinkToTopicCommand = new Class({
|
mindplot.commands.ChangeLinkToTopicCommand = new Class({
|
||||||
Extends:mindplot.Command,
|
Extends:mindplot.Command,
|
||||||
initialize: function(topicId, url) {
|
initialize: function(topicId, url) {
|
||||||
$assert(topicId, 'topicId can not be null');
|
$assert($defined(topicId), 'topicId can not be null');
|
||||||
this._topicsIds = topicId;
|
this._topicsIds = topicId;
|
||||||
this._url = url;
|
this._url = url;
|
||||||
this._id = mindplot.Command._nextUUID();
|
this._id = mindplot.Command._nextUUID();
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
mindplot.commands.ChangeNoteToTopicCommand = new Class({
|
mindplot.commands.ChangeNoteToTopicCommand = new Class({
|
||||||
Extends:mindplot.Command,
|
Extends:mindplot.Command,
|
||||||
initialize: function(topicId, text) {
|
initialize: function(topicId, text) {
|
||||||
$assert(topicId, 'topicId can not be null');
|
$assert($defined(topicId), 'topicId can not be null');
|
||||||
this._topicsIds = topicId;
|
this._topicsIds = topicId;
|
||||||
this._text = text;
|
this._text = text;
|
||||||
this._oldtext = null;
|
this._oldtext = null;
|
||||||
|
@ -20,7 +20,7 @@ mindplot.commands.GenericFunctionCommand = new Class({
|
|||||||
Extends:mindplot.Command,
|
Extends:mindplot.Command,
|
||||||
initialize: function(commandFunc, topicsIds,value) {
|
initialize: function(commandFunc, topicsIds,value) {
|
||||||
$assert(commandFunc, "commandFunc must be defined");
|
$assert(commandFunc, "commandFunc must be defined");
|
||||||
$assert(topicsIds, "topicsIds must be defined");
|
$assert($defined(topicsIds), "topicsIds must be defined");
|
||||||
|
|
||||||
this._value = value;
|
this._value = value;
|
||||||
this._topicsIds = topicsIds;
|
this._topicsIds = topicsIds;
|
||||||
|
Loading…
Reference in New Issue
Block a user