one(type, fn)

This function will add an event listener that gets triggered only once. After the
first trigger it will get removed. This is like adding an event listener
with EventTarget#on that calls EventTarget#off on itself.