Move window/document test to dimensions for consistency
This commit is contained in:
parent
edb2286544
commit
bdce86dc2e
2 changed files with 6 additions and 11 deletions
|
@ -170,11 +170,6 @@ jQuery.each(["height", "width"], function( i, name ) {
|
|||
get: function( elem, computed, extra ) {
|
||||
var val;
|
||||
|
||||
// Tests for window/document
|
||||
if ( !elem.style ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if ( computed ) {
|
||||
if ( elem.offsetWidth !== 0 ) {
|
||||
val = getWH( elem, name, extra );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue