aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-22 09:16:28 -0400
committerjeresig <jeresig@gmail.com>2010-09-22 09:16:28 -0400
commit9dc6e0c572b9c809a3a4c123071d96d48a01dd1c (patch)
tree70bb5a22bee73b049d07469a86479d64e185ac43 /src/effects.js
parent19b5d9e874bbd97d03d9e0561a70711e2bf91fcb (diff)
downloadjquery-9dc6e0c572b9c809a3a4c123071d96d48a01dd1c.tar.gz
jquery-9dc6e0c572b9c809a3a4c123071d96d48a01dd1c.zip
Applied the RegExp issues reported by Jeff Robinson here: http://jmrware.com/articles/2010/jqueryregex/jQueryRegexes.html Additionally broke out all remaining inline RegExp. Fixes #7062.
Diffstat (limited to 'src/effects.js')
-rw-r--r--src/effects.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects.js b/src/effects.js
index d3ac99a45..87d0f4db7 100644
--- a/src/effects.js
+++ b/src/effects.js
@@ -1,7 +1,7 @@
(function( jQuery ) {
var elemdisplay = {},
- rfxtypes = /toggle|show|hide/,
+ rfxtypes = /^(?:toggle|show|hide)$/,
rfxnum = /^([+\-]=)?([\d+.\-]+)(.*)$/,
timerId,
fxAttrs = [
@@ -31,7 +31,7 @@ jQuery.fn.extend({
display = elemdisplay[ nodeName ];
} else {
- var elem = jQuery("<" + nodeName + " />").appendTo("body");
+ var elem = jQuery("<" + nodeName + ">").appendTo("body");
display = elem.css("display");