Improved jQuery.prop to handle "px" on computed values
This commit is contained in:
parent
48c16eb85b
commit
339789a931
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue