From 2ede0b24e2fe62f016f00f64aa335ae2eba80334 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Tue, 12 Jan 2010 14:51:36 -0500 Subject: [PATCH] coding style change --- src/dom/dom.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dom/dom.js b/src/dom/dom.js index 6f2d12e..3cefa6c 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -1005,7 +1005,7 @@ Element.Methods = { getStyle: function(element, style) { element = $(element); if (!element.style) - return null; + return null; style = style == 'float' ? 'cssFloat' : style.camelize(); var value = element.style[style]; @@ -1581,8 +1581,8 @@ else if (Prototype.Browser.IE) { // accurate offsetTop and offsetLeft values for position: fixed. var offsetParent = element.getOffsetParent(); if (offsetParent.getStyle) - if (offsetParent && offsetParent.getStyle('position') === 'fixed') - offsetParent.setStyle({ zoom: 1 }); + if (offsetParent && offsetParent.getStyle('position') === 'fixed') + offsetParent.setStyle({ zoom: 1 }); element.setStyle({ position: 'relative' }); var value = proceed(element); element.setStyle({ position: position }); @@ -1594,7 +1594,7 @@ else if (Prototype.Browser.IE) { Element.Methods.getStyle = function(element, style) { element = $(element); if (!element.style) - return null; + return null; style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize(); var value = element.style[style];