prototype: Avoid re-extending element in Element#getDimensions.

This commit is contained in:
Tobie Langel 2008-03-19 14:04:52 +00:00
parent 598387f137
commit 855e27311d
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
* Avoid re-extending element in Element#getDimensions. [kangax]
* Prevent Hash#toQueryString from serializing objets. [kangax, Tobie Langel]
* Fix Event#pointer in IE standard mode. Closes #9920. [kangax, Tobie Langel]

View File

@ -434,7 +434,7 @@ Element.Methods = {
getDimensions: function(element) {
element = $(element);
var display = $(element).getStyle('display');
var display = element.getStyle('display');
if (display != 'none' && display != null) // Safari bug
return {width: element.offsetWidth, height: element.offsetHeight};