Changeset [77955f4e2baebd13aad599604b9bb4cf9bfb8463] by Alexander Ljungberg
Revision 77955f4e2baebd13aad599604b9bb4cf9bfb8463,
committed by Alexander Ljungberg
· December 10th, 2012 @ 02:57 PM
Allow setTimeout(f) to support some JS libraries such as PDF.js.
Without this change some 3rd party JS libraries such as PDF.js, which rely on the nonstandard setTimeout(f), will not operate correctly.
According to MDN the delay argument is required. However
browsers seem to treat setTimeout without delay argument the same
as a delay of 0. This fix makes it so that Cappuccino apps do the
same.
https://github.com/cappuccino/cappuccino/commit/77955f4e2baebd13aad...
1 changed file
-
M
Foundation/CPTimer.j