From 339789a931fbb01870b1ecd522e35bd439149292 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Tue, 13 Feb 2007 22:41:58 +0000 Subject: [PATCH] Improved jQuery.prop to handle "px" on computed values --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 3522f8c..38caaf0 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; -- 1.7.10.4