mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-01 04:31:36 +02:00
Begin d3 v4 update
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function triggerEvent(target, type) {
|
||||
target.each(function() {
|
||||
var evt = document.createEvent('HTMLEvents');
|
||||
evt.initEvent(type, true, true);
|
||||
this.dispatchEvent(evt);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user