Fix #12283. Return null for dimension getters on non elements. Fix gh-900.

This commit is contained in:
Mike Sherov
2012-08-19 16:30:10 -04:00
committed by Dave Methvin
parent 9f86dc922e
commit ad040181dc
2 changed files with 17 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
// Set width or height on the element
jQuery.style( elem, type, value, extra );
}, type, chainable ? margin : undefined, chainable );
}, type, chainable ? margin : undefined, chainable, null );
};
});
});