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

Function emitOne

lib/purifycss.js:85–94  ·  view source on GitHub ↗
(handler, isFn, self, arg1)

Source from the content-addressed store, hash-verified

83 }
84}
85function emitOne(handler, isFn, self, arg1) {
86 if (isFn)
87 handler.call(self, arg1);
88 else {
89 var len = handler.length;
90 var listeners = arrayClone(handler, len);
91 for (var i = 0; i < len; ++i)
92 listeners[i].call(self, arg1);
93 }
94}
95function emitTwo(handler, isFn, self, arg1, arg2) {
96 if (isFn)
97 handler.call(self, arg1, arg2);

Callers 1

purifycss.jsFile · 0.70

Calls 1

arrayCloneFunction · 0.70

Tested by

no test coverage detected