git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48c16eb
)
Improved jQuery.prop to handle "px" on computed values
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Tue, 13 Feb 2007 22:41:58 +0000
(22:41 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Tue, 13 Feb 2007 22:41:58 +0000
(22:41 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
3522f8c
..
38caaf0
100644
(file)
--- 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;