Fixed infinite recursion problem when compiling with "pretty"

svn changeset:6265/svn branch:trunk
This commit is contained in:
Artur Signell 2008-12-18 11:17:11 +00:00
parent 3058750c76
commit 77e45a0157

View File

@ -688,8 +688,9 @@ public class Util {
// IE
return el.currentStyle[p];
} else if (window.getComputedStyle) {
//Sa, FF, Opera
return document.defaultView.getComputedStyle(el,null).getPropertyValue(p);
// Sa, FF, Opera
var view = el.ownerDocument.defaultView;
return view.getComputedStyle(el,null).getPropertyValue(p);
} else {
// fall back for non IE, Sa, FF, Opera
return "";