aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2007-02-13 22:41:58 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2007-02-13 22:41:58 +0000
commit339789a931fbb01870b1ecd522e35bd439149292 (patch)
treeb306598af0a84050d02fff985aece95a8d6585e7 /src
parent48c16eb85b5fc48d4f472bfef43571e86359e20a (diff)
downloadjquery-339789a931fbb01870b1ecd522e35bd439149292.tar.gz
jquery-339789a931fbb01870b1ecd522e35bd439149292.zip
Improved jQuery.prop to handle "px" on computed values
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 3522f8c6b..38caaf0ae 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -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;