Changeset [77955f4e2baebd13aad599604b9bb4cf9bfb8463] 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...

Committed by Alexander Ljungberg

  • M Foundation/CPTimer.j
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins