playcraft/gamecore.js — pull request #1 by jtokoph (2012-07-03 04:24:04+00:00)
Title: Fixes for gamecore.Device

Define default FPS for requestAnimationFrame fallback (16ms frames)
Pass timestamp to RAF callback to fit spec **
Fix profiling check where window.performance may not exist
Use consistent and faster undefined check (http://jsperf.com/hasownproperty-vs-in-vs-undefined/12)

** NOTE: Date.now() is not supported in IE8. +new Date can be used instead, but it isn't as fast. IE8 doesn't natively support canvas anyway, so this may not be an issue. (http://jsperf.com/new-date-value/9). I've opted for the faster version because it will have to be called on every frame.