From 339789a931fbb01870b1ecd522e35bd439149292 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Tue, 13 Feb 2007 22:41:58 +0000 Subject: Improved jQuery.prop to handle "px" on computed values --- src/jquery/jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3