Forum Bugs

TypeError: undefined value is not an object in js

talyrobin
I am using jquery-1.11.1.js and receive this error to the getComputedStyle function. Any insight on what is causing this and how to resovle?


if ( window.getComputedStyle ) {
getStyles = function( elem ) {
return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); <<<---------error line
};

curCSS = function( elem, name, computed ) {
var width, minWidth, maxWidth, ret,
style = elem.style;

computed = computed || getStyles( elem );
mikeday
This might be coming from the reference to defaultView, which is supported in latest builds but not Prince 10.