react-annotation
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -73,4 +73,7 @@ "use strict"; | ||
var wrappedEvents = {}; | ||
Object.keys(events).forEach(function (k) { | ||
events[k] = events[k].bind(_this, _this.props, _this.state); | ||
wrappedEvents[k] = function (e) { | ||
events[k](_this.props, _this.state, e); | ||
}; | ||
}); | ||
@@ -80,3 +83,3 @@ return _react.default.createElement("g", _extends({ | ||
transform: "translate(".concat(x, ", ").concat(y, ")") | ||
}, events), childrenWithProps); | ||
}, wrappedEvents), childrenWithProps); | ||
} | ||
@@ -83,0 +86,0 @@ }]); |
{ | ||
"name": "react-annotation", | ||
"description": "React components for annotating SVG elements ", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"homepage": ".", | ||
@@ -6,0 +6,0 @@ "repository": { |
133028
2163