]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Don't use $.style since it doesn't exist in jQuery 1.3.2. Fixes #6196 - outerWi...
authorScott González <scott.gonzalez@gmail.com>
Wed, 20 Oct 2010 02:44:46 +0000 (22:44 -0400)
committerScott González <scott.gonzalez@gmail.com>
Wed, 20 Oct 2010 02:45:56 +0000 (22:45 -0400)
ui/jquery.ui.core.js

index 212bfd4025808816069fc354258eb26bafe510a9..bda679554fff9f692a89ad65182ec476b3a0a17e 100644 (file)
@@ -158,7 +158,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
                }
 
                return this.each(function() {
-                       $.style( this, type, reduce( this, size ) + "px" );
+                       $( this ).css( type, reduce( this, size ) + "px" );
                });
        };
 
@@ -168,7 +168,7 @@ $.each( [ "Width", "Height" ], function( i, name ) {
                }
 
                return this.each(function() {
-                       $.style( this, type, reduce( this, size, true, margin ) + "px" );
+                       $( this).css( type, reduce( this, size, true, margin ) + "px" );
                });
        };
 });