Because Firebug has to open its timer and log every function call, it
will appear that 30% of your execution time is emptyFunction. However,
it is actually Firebug trying to log something and taking longer than
the function itself.
You will find that disabling Firebug will make your app run much
I think this will solve itself. If I understood the announcements on
Squirrelfish correctly, they are trying to inline small calls. So that
a call to emptyFunction would become a noop.
On 24 Dez. 2008, 21:35, npepinpe n.pepi...@gmail.com wrote:
The Prototype.emptyFunction is just a dummy
The Prototype.emptyFunction is just a dummy function; it doesn't
actually do anything.
emptyFunction: function() {}
It's often used as a default option for callbacks and such, so that
you can still call the callback even if the user hasn't specified
anything. It shouldn't affect running time as