WISE-225 fixed

This commit is contained in:
Ezequiel Bergamaschi 2014-05-02 15:26:17 -03:00
parent ef9b0ed227
commit b692355b04
3 changed files with 5 additions and 4 deletions

View File

@ -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;
},

View File

@ -325,6 +325,6 @@ mindplot.Relationship = new Class({
fireEvent:function (type, event) {
var elem = this._line2d;
elem.fireEvent(type, event);
elem.trigger(type, event);
}
});

View File

@ -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();