Skip to content
Permalink
Browse files
Improved jQuery.prop to handle "px" on computed values
  • Loading branch information
jzaefferer committed Feb 13, 2007
1 parent 48c16eb commit 339789a931fbb01870b1ecd522e35bd439149292
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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;

0 comments on commit 339789a

Please sign in to comment.