UNPKG

mapeo-id-bmf

Version:

iD Editor for osm-p2p & mapeo-desktop changed to meet requirements of Bruno Manser Fonds

10 lines (9 loc) 269 B
export function utilBindOnce(target, type, listener, capture) { var typeOnce = type + '.once'; function one() { target.on(typeOnce, null); listener.apply(this, arguments); } target.on(typeOnce, one, capture); return this; }