Skip to content

Commit

Permalink
Merge pull request #1077 from jvilk/master
Browse files Browse the repository at this point in the history
Fix memory leak in `Element.removeData()`
  • Loading branch information
tomasAlabes authored Mar 24, 2019
2 parents 75b48f2 + 29c3423 commit d06f87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/raphael.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3120,7 +3120,7 @@ define(["eve"], function(eve) {
\*/
elproto.removeData = function (key) {
if (key == null) {
eldata[this.id] = {};
delete eldata[this.id];
} else {
eldata[this.id] && delete eldata[this.id][key];
}
Expand Down

0 comments on commit d06f87e

Please sign in to comment.