Module to delegate any DOM event using delegation.