Permalink
Browse files

Old FF needs a second parameter for getComputedStyle.

  • Loading branch information...
1 parent b9502dd commit 95e0d77057d1cc0a605b8bce15057917e1af3239 @arian arian committed Feb 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/browser.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)) : ""
}

0 comments on commit 95e0d77

Please sign in to comment.