Commit 339789a9 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Improved jQuery.prop to handle "px" on computed values

parent 48c16eb8
...@@ -1280,7 +1280,7 @@ jQuery.extend({ ...@@ -1280,7 +1280,7 @@ jQuery.extend({
prop: function(elem, value, type, index, prop){ prop: function(elem, value, type, index, prop){
// Handle executable functions // Handle executable functions
if ( jQuery.isFunction( value ) ) if ( jQuery.isFunction( value ) )
return value.call( elem, [index] ); value = value.call( elem, [index] );
// exclude the following css properties to add px // exclude the following css properties to add px
var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i; var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment