- prop: function(elem, value){
- // Handle executable functions
- return value.constructor == Function &&
- value.call( elem ) || value;
+ prop: function(elem, value, type, index, prop){
+ // Handle executable functions
+ if ( jQuery.isFunction( value ) )
+ return value.call( elem, [index] );
+
+ // exclude the following css properties to add px
+ var exclude = /z-?index|font-?weight|opacity/i;
+
+ // Handle passing in a number to a CSS property
+ if ( value.constructor == Number && type == "curCSS" && !exclude.test(prop) )
+ return value + "px";
+
+ return value;