MCPcopy Index your code
hub / github.com/purifycss/purifycss / emitMany

Function emitMany

lib/purifycss.js:116–125  ·  view source on GitHub ↗
(handler, isFn, self, args)

Source from the content-addressed store, hash-verified

114}
115
116function emitMany(handler, isFn, self, args) {
117 if (isFn)
118 handler.apply(self, args);
119 else {
120 var len = handler.length;
121 var listeners = arrayClone(handler, len);
122 for (var i = 0; i < len; ++i)
123 listeners[i].apply(self, args);
124 }
125}
126
127EventEmitter.prototype.emit = function emit(type) {
128 var er, handler, len, args, i, events, domain;

Callers 1

purifycss.jsFile · 0.70

Calls 1

arrayCloneFunction · 0.70

Tested by

no test coverage detected