Skip to content

Commit

Permalink
Revert Opera-specific behavior for calling Element#getStyle with (lef…
Browse files Browse the repository at this point in the history
…t|right|top|bottom). [#268 state:resolved] (kangax, Andrew Dupont)
  • Loading branch information
savetheclocktower committed Oct 17, 2010
1 parent f6e77f6 commit de6a585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,3 +1,5 @@
* Revert Opera-specific behavior for calling Element#getStyle with (left|right|top|bottom). [#268 state:resolved] (kangax, Andrew Dupont)

* Fix issue with Event#isMiddleClick and #isRightClick on Safari and Chrome. [#731 state:resolved] (Arthur Schreiber)

* Fix issue where an Ajax request in IE sometimes returns 1223 instead of 204 as the status code. [#129 state:resolved] (adevadeh, gordyt, Andrew Dupont)
Expand Down
2 changes: 0 additions & 2 deletions src/dom/dom.js
Expand Up @@ -2645,8 +2645,6 @@ if (Prototype.Browser.Opera) {
Element.Methods.getStyle = Element.Methods.getStyle.wrap(
function(proceed, element, style) {
switch (style) {
case 'left': case 'top': case 'right': case 'bottom':
if (proceed(element, 'position') === 'static') return null;
case 'height': case 'width':
// returns '0px' for hidden elements; we want it to return null
if (!Element.visible(element)) return null;
Expand Down

0 comments on commit de6a585

Please sign in to comment.