Skip to content
Permalink
Browse files

shorten requestAnimationFrame test

  • Loading branch information
louisremi timmywil
louisremi authored and timmywil committed Mar 11, 2011
1 parent c95ab2a commit 5b0369366a83d7339f925bfef3a277d7287c9bd2
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/support.js
@@ -13,7 +13,8 @@
a = div.getElementsByTagName("a")[0],
select = document.createElement("select"),
opt = select.appendChild( document.createElement("option") ),
input = div.getElementsByTagName("input")[0];
input = div.getElementsByTagName("input")[0],
raf = "RequestAnimationFrame";

// Can't get basic test support
if ( !all || !all.length || !a ) {
@@ -60,11 +61,10 @@

// Verify requestAnimationFrame mechanism existence
// use the prefixed name as the value
requestAnimationFrame: window.mozRequestAnimationFrame ?
'mozRequestAnimationFrame' :
window.webkitRequestAnimationFrame ?
'webkitRequestAnimationFrame' :
false,
requestAnimationFrame:
window['moz' + raf] ? 'moz' + raf :
window['webkit' + raf] ? 'webkit' + raf :
false,

// Will be defined later
deleteExpando: true,

0 comments on commit 5b03693

Please sign in to comment.
You can’t perform that action at this time.