Skip to content

Commit

Permalink
CustomEvent-polyfill was not used (needed in IE) (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzyma committed Nov 30, 2018
1 parent 5a72b48 commit ac4e416
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ The document follows the conventions described in [“Keep a CHANGELOG”](http:
- fixed a bug in IE11 with `mouseenter` and `mouseleave` -> __TODO!__


## [2.7.1] - 2018-11-30

### Fixed
- CustomEvent-polyfill was not used (needed in IE) (#938)

## [2.7.0] - 2018-11-13

### Fixed
Expand Down Expand Up @@ -653,6 +658,7 @@ The document follows the conventions described in [“Keep a CHANGELOG”](http:


<!-- Headings above link to the releases listed here -->
[2.7.1]: https://github.com/svgdotjs/svg.js/releases/tag/2.7.1
[2.7.0]: https://github.com/svgdotjs/svg.js/releases/tag/2.7.0
[2.6.6]: https://github.com/svgdotjs/svg.js/releases/tag/2.6.6
[2.6.5]: https://github.com/svgdotjs/svg.js/releases/tag/2.6.5
Expand Down
6 changes: 3 additions & 3 deletions dist/svg.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* svg.js - A lightweight library for manipulating and animating SVG.
* @version 2.7.0
* @version 2.7.1
* https://svgdotjs.github.io/
*
* @copyright Wout Fierens <[email protected]>
* @license MIT
*
* BUILT: Tue Nov 13 2018 21:10:01 GMT+0100 (GMT+01:00)
* BUILT: Fri Nov 30 2018 10:01:55 GMT+0100 (GMT+01:00)
*/;
(function(root, factory) {
/* istanbul ignore next */
Expand Down Expand Up @@ -3532,7 +3532,7 @@ SVG.extend(SVG.Element, {
if (event instanceof window.Event) {
this.node.dispatchEvent(event)
} else {
this.node.dispatchEvent(event = new window.CustomEvent(event, {detail: data, cancelable: true}))
this.node.dispatchEvent(event = new SVG.CustomEvent(event, {detail: data, cancelable: true}))
}
this._event = event
return this
Expand Down
4 changes: 2 additions & 2 deletions dist/svg.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svg.js",
"version": "2.7.0",
"version": "2.7.1",
"description": "A lightweight library for manipulating and animating SVG.",
"url": "https://svgdotjs.github.io/",
"homepage": "https://svgdotjs.github.io/",
Expand Down
2 changes: 1 addition & 1 deletion src/event.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ SVG.extend(SVG.Element, {
if (event instanceof window.Event) {
this.node.dispatchEvent(event)
} else {
this.node.dispatchEvent(event = new window.CustomEvent(event, {detail: data, cancelable: true}))
this.node.dispatchEvent(event = new SVG.CustomEvent(event, {detail: data, cancelable: true}))
}
this._event = event
return this
Expand Down

0 comments on commit ac4e416

Please sign in to comment.