git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update jQuery.hasData to always return a boolean, with unit tests.
[jquery.git]
/
src
/
effects.js
diff --git
a/src/effects.js
b/src/effects.js
index
482c44d
..
6007074
100644
(file)
--- a/
src/effects.js
+++ b/
src/effects.js
@@
-2,7
+2,7
@@
var elemdisplay = {},
rfxtypes = /^(?:toggle|show|hide)$/,
var elemdisplay = {},
rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = /^([+\-]=)?([\d+.\-]+)(.*)$/,
+ rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
timerId,
fxAttrs = [
// height animations
timerId,
fxAttrs = [
// height animations
@@
-63,7
+63,7
@@
jQuery.fn.extend({
var display = jQuery.css( this[i], "display" );
if ( display !== "none" && !jQuery.data( this[i], "olddisplay" ) ) {
var display = jQuery.css( this[i], "display" );
if ( display !== "none" && !jQuery.data( this[i], "olddisplay" ) ) {
- jQuery.data( this[i], "olddisplay", display );
+ jQuery.data( this[i], "olddisplay", display );
}
}
}
}