mirror of
https://github.com/vaadin/framework.git
synced 2024-09-13 15:46:01 +02:00
Fixed infinite recursion problem when compiling with "pretty"
svn changeset:6265/svn branch:trunk
This commit is contained in:
parent
3058750c76
commit
77e45a0157
@ -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 "";
|
||||
|
Loading…
Reference in New Issue
Block a user