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

Function emitTwo

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

Source from the content-addressed store, hash-verified

93 }
94}
95function emitTwo(handler, isFn, self, arg1, arg2) {
96 if (isFn)
97 handler.call(self, arg1, arg2);
98 else {
99 var len = handler.length;
100 var listeners = arrayClone(handler, len);
101 for (var i = 0; i < len; ++i)
102 listeners[i].call(self, arg1, arg2);
103 }
104}
105function emitThree(handler, isFn, self, arg1, arg2, arg3) {
106 if (isFn)
107 handler.call(self, arg1, arg2, arg3);

Callers 1

purifycss.jsFile · 0.70

Calls 1

arrayCloneFunction · 0.70

Tested by

no test coverage detected