]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable: Flipped order of a conditional for performance benefit.
authorScott González <scott.gonzalez@gmail.com>
Fri, 30 May 2008 15:34:21 +0000 (15:34 +0000)
committerScott González <scott.gonzalez@gmail.com>
Fri, 30 May 2008 15:34:21 +0000 (15:34 +0000)
ui/source/ui.resizable.js

index 6e8907ec1ac27f6cc485cc93cb09a680b268b61c..b28ad809546ce797ec5c20930e1b70e75ddec385 100644 (file)
                        }\r
                        \r
                        //Opera fixing relative position\r
-                       if (/relative/.test(el.css('position')) && $.browser.opera)\r
+                       if ($.browser.opera && /relative/.test(el.css('position')))\r
                                el.css({ position: 'relative', top: 'auto', left: 'auto' });\r
                        \r
                        this._renderProxy();\r