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

Function emitNone

lib/purifycss.js:75–84  ·  view source on GitHub ↗
(handler, isFn, self)

Source from the content-addressed store, hash-verified

73// the same number of arguments and thus do not get deoptimized, so the code
74// inside them can execute faster.
75function emitNone(handler, isFn, self) {
76 if (isFn)
77 handler.call(self);
78 else {
79 var len = handler.length;
80 var listeners = arrayClone(handler, len);
81 for (var i = 0; i < len; ++i)
82 listeners[i].call(self);
83 }
84}
85function emitOne(handler, isFn, self, arg1) {
86 if (isFn)
87 handler.call(self, arg1);

Callers 1

purifycss.jsFile · 0.70

Calls 1

arrayCloneFunction · 0.70

Tested by

no test coverage detected