Clean up regexen; use common regex for numbers. Close gh-862.

This commit is contained in:
Richard Gibson
2012-07-22 22:23:32 -04:00
committed by Dave Methvin
parent 74cc5b0984
commit c14a6b385f
8 changed files with 28 additions and 26 deletions

2
src/effects.js vendored
View File

@@ -1,6 +1,6 @@
var fxNow, timerId,
rfxtypes = /^(?:toggle|show|hide)$/,
rfxnum = /^(?:([\-+])=)?([\d+.\-]+)([a-z%]*)$/i,
rfxnum = new RegExp( "^(?:([-+])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
rrun = /queueHooks$/,
animationPrefilters = [ defaultPrefilter ],
tweeners = {