Skip to content

Commit

Permalink
rm unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedowns committed Dec 18, 2019
1 parent 3826d2e commit 3714348
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mixins/canvas_events.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,9 +829,8 @@
_fireOverOutEvents: function(target, e) {
var _this = this, _hoveredTarget = this._hoveredTarget,
_hoveredTargets = this._hoveredTargets, targets = this.targets,
diff = _hoveredTargets.length - targets.length,
diffArrayLength = diff > 0 ? diff : 0;
[target].concat(targets, new Array(diffArrayLength).fill(null)).forEach(function(_target, index) {
diff = _hoveredTargets.length - targets.length;
[target].concat(targets, new Array(diff > 0 ? diff : 0).fill(null)).forEach(function(_target, index) {
_this.fireSyntheticInOutEvents(_target, e, {
oldTarget: index === 0 ? _hoveredTarget : _hoveredTargets[index - 1],
canvasEvtOut: 'mouse:out',
Expand Down

0 comments on commit 3714348

Please sign in to comment.