]> source.dussan.org Git - jquery.git/commitdiff
Improved jQuery.prop to handle "px" on computed values
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 13 Feb 2007 22:41:58 +0000 (22:41 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Tue, 13 Feb 2007 22:41:58 +0000 (22:41 +0000)
src/jquery/jquery.js

index 3522f8c6b0fa269e8771c34d05d2b30dcc354d64..38caaf0aed9a8297981c0f191b10b763f580f4ec 100644 (file)
@@ -1280,7 +1280,7 @@ jQuery.extend({
        prop: function(elem, value, type, index, prop){
                        // Handle executable functions
                        if ( jQuery.isFunction( value ) )
-                               return value.call( elem, [index] );
+                               value = value.call( elem, [index] );
                                
                        // exclude the following css properties to add px
                        var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i;