Skip to content

Commit d332614

Browse files
authored
Merge pull request #226 from jdz321/master
fix: 防止 Event.prototype 被修改
2 parents 1e104b4 + b6d0758 commit d332614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/data/DataSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function DataSet(data, options) {
4747

4848
}
4949

50-
DataSet.prototype = Event.prototype;
50+
DataSet.prototype = Object.create(Event.prototype);
5151

5252
/**
5353
* Add data.

0 commit comments

Comments
 (0)