Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function Handler(options){
if(!(this instanceof Handler)) return new Handler(options);
var that = this;
DomHandler.call(this, function(e, dom){
that.emit("dom", dom);
}, options, function(elem){
that.emit("element", elem);
});
}