From 5ad7495d3176ab8f7e79304be352ffe1e24bfb35 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 19 Feb 2013 15:55:35 -0500 Subject: [PATCH] getComputedStyle -> window.getComputedStyle --- dygraph-utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dygraph-utils.js b/dygraph-utils.js index 67cf4f7..6aa7dfc 100644 --- a/dygraph-utils.js +++ b/dygraph-utils.js @@ -301,7 +301,7 @@ Dygraph.findPosX = function(obj) { if(obj.offsetParent) { var copyObj = obj; while(1) { - var borderLeft = getComputedStyle(copyObj, null).borderLeft || "0"; + var borderLeft = window.getComputedStyle(copyObj, null).borderLeft || "0"; curleft += parseInt(borderLeft, 10) ; curleft += copyObj.offsetLeft; if(!copyObj.offsetParent) { @@ -334,7 +334,7 @@ Dygraph.findPosY = function(obj) { if(obj.offsetParent) { var copyObj = obj; while(1) { - var borderTop = getComputedStyle(copyObj, null).borderTop || "0"; + var borderTop = window.getComputedStyle(copyObj, null).borderTop || "0"; curtop += parseInt(borderTop, 10) ; curtop += copyObj.offsetTop; if(!copyObj.offsetParent) { -- 2.7.4