MCPcopy Create free account
hub / github.com/purifycss/purifycss / emitNone

Function emitNone

lib/purifycss.es.js:71–80  ·  view source on GitHub ↗
(handler, isFn, self)

Source from the content-addressed store, hash-verified

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

Callers 1

purifycss.es.jsFile · 0.70

Calls 1

arrayCloneFunction · 0.70

Tested by

no test coverage detected