Permalink
Browse files

Merge pull request #20 from arian/fix-old-ff

Fix old ff
  • Loading branch information...
2 parents b9502dd + d042acb commit ab7266b403bd35094968bda43e5c0c337dca920c @kamicane committed Feb 21, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 lib/browser.js
  2. +3 −1 lib/frame.js
View
@@ -40,7 +40,7 @@ var round = function(n){
// compute > node > property
var compute = global.getComputedStyle ? function(node){
- var cts = getComputedStyle(node)
+ var cts = getComputedStyle(node, null)
return function(property){
return cts ? cts.getPropertyValue(hyphenate(property)) : ""
}
View
@@ -10,7 +10,9 @@ var requestFrame = global.requestAnimationFrame ||
global.oRequestAnimationFrame ||
global.msRequestAnimationFrame ||
function(callback){
- return setTimeout(callback, 1e3 / 60)
+ return setTimeout(function(){
+ callback()
+ }, 1e3 / 60)
}
var callbacks = []

0 comments on commit ab7266b

Please sign in to comment.