3 ms·
> intercooler doesn't have an entry point. It does. There is an IIFE which is run when the script is loaded. Right before the object is returned to the global
by ahoge 12y ago
> intercooler doesn't have an entry point.
It does.
There is an IIFE which is run when the script is loaded. Right before the object is returned to the global "Intercooler" variable, a callback is registered via a jQuery.ready() shorthand.
Practically speaking, this callback is the entry point (theoretically, it's the IIFE itself).
If it wouldn't have an entry point, adding attributes to elements would do nothing.
http://en.wikipedia.org/wiki/Entry_point http://en.wikipedia.org/wiki/Entry_point
"an entry point is where control enters a program or piece of code"