Skip to content

Commit

Permalink
Merge branch '1.7.0' of github.com:sporritt/jsPlumb into 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sporritt committed Oct 11, 2014
2 parents c599bd4 + a751824 commit cbb7b63
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,13 @@
this.setAnchor(anchorParamsToUse, true);
//console.cTimeEnd("set anchor");

// endpoint delegates to first connection for hover, if there is one.
// old behaviour: endpoint delegates to first connection for hover, if there is one.
// fixed bug #262: Why shall we only highlight/hover the first connection?
// Changed this so that all connected endpoints will be highlighted.
var internalHover = function(state) {
if (this.connections.length > 0)
this.connections[0].setHover(state, false);
for (var i = 0; i < this.connections.length; i++)
this.connections[i].setHover(state, false);
else
this.setHover(state);
}.bind(this);
Expand Down Expand Up @@ -878,7 +881,7 @@
// have a beforeDrop condition (although, secretly, under the hood all Endpoints and
// the Connection have them, because they are on jsPlumbUIComponent. shhh!), because
// it only makes sense to have it on a target endpoint.
_doContinue = _doContinue && this.isDropAllowed(jpc.sourceId, jpc.targetId, jpc.scope, jpc, this);
_doContinue = _doContinue && this.isDropAllowed(jpc.sourceId, jpc.targetId, jpc.scope, jpc, this) && jpc.pending;

if (_doContinue) {
continueFunction();
Expand Down

0 comments on commit cbb7b63

Please sign in to comment.