From: Jörn Zaefferer Date: Tue, 13 Feb 2007 22:41:58 +0000 (+0000) Subject: Improved jQuery.prop to handle "px" on computed values X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=commitdiff_plain;h=339789a931fbb01870b1ecd522e35bd439149292 Improved jQuery.prop to handle "px" on computed values --- 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;