mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
WISE-225 fixed
This commit is contained in:
parent
ef9b0ed227
commit
b692355b04
@ -106,7 +106,7 @@ mindplot.ControlPoint = new Class({
|
||||
this._workspace.getScreenManager().addEvent('mouseup', this._mouseUpFunction);
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stop();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
},
|
||||
|
||||
@ -143,7 +143,7 @@ mindplot.ControlPoint = new Class({
|
||||
|
||||
_mouseClick : function(event) {
|
||||
event.preventDefault();
|
||||
event.stop();
|
||||
event.stopPropagation();
|
||||
return false;
|
||||
},
|
||||
|
||||
|
@ -325,6 +325,6 @@ mindplot.Relationship = new Class({
|
||||
|
||||
fireEvent:function (type, event) {
|
||||
var elem = this._line2d;
|
||||
elem.fireEvent(type, event);
|
||||
elem.trigger(type, event);
|
||||
}
|
||||
});
|
||||
|
@ -23,6 +23,7 @@ mindplot.RelationshipPivot = new Class({
|
||||
this._workspace = workspace;
|
||||
this._designer = designer;
|
||||
|
||||
//FIXME: the aim of the migration is remove .bind mootools method, please remove these!
|
||||
this._mouseMoveEvent = this._mouseMove.bind(this);
|
||||
this._onClickEvent = this._cleanOnMouseClick.bind(this);
|
||||
this._onTopicClick = this._connectOnFocus.bind(this);
|
||||
@ -139,7 +140,7 @@ mindplot.RelationshipPivot = new Class({
|
||||
return mindplot.util.Shape.calculateRelationShipPointCoordinates(this._sourceTopic, spoint);
|
||||
},
|
||||
|
||||
_connectOnFocus:function (targetTopic) {
|
||||
_connectOnFocus:function (event, targetTopic) {
|
||||
var sourceTopic = this._sourceTopic;
|
||||
var mindmap = this._designer.getMindmap();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user