prototype: Avoid re-extending element in Element#getDimensions.
This commit is contained in:
parent
598387f137
commit
855e27311d
|
@ -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]
|
||||
|
|
|
@ -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};
|
||||
|
||||
|
|
Loading…
Reference in New Issue