Skip to content

Commit

Permalink
fix(SVGCanvasElement): addEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
zenozeng committed Feb 4, 2022
1 parent 3991b8e commit aad3657
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ https://zenozeng.github.io/p5.js-svg/test/

## CHANGELOG

## v2.2.0
### v2.2.1

- fix(SVGCanvasElement): addEventListener

### v2.2.0

- feat: Context.prototype.getImageData (experimental) for https://github.com/gliffy/canvas2svg/issues/3 and https://github.com/zenozeng/p5.js-svg/issues/203

## v2.1.0
### v2.1.0

- feat: SVGCanvasElement(options)
- feat: options.debug
Expand Down
2 changes: 1 addition & 1 deletion element.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ SVGCanvasElement.prototype.toDataURL = function(type, encoderOptions, options) {
};

SVGCanvasElement.prototype.addEventListener = function() {
return this.svg.addEventListener.apply(this, arguments);
return this.svg.addEventListener.apply(this.svg, arguments);
};

// will return wrapper element: <div><svg></svg></div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svgcanvas",
"version": "2.2.0",
"version": "2.2.1",
"description": "svgcanvas",
"main": "dist/svgcanvas.js",
"scripts": {
Expand Down

0 comments on commit aad3657

Please sign in to comment.