Skip to content

Bug 7345; Add support for explicit/relative string values in .css - modif #297

Merged
merged 2 commits into from Apr 6, 2011

2 participants

@danheberden
jQuery Foundation member

Bug 7345; Add support for explicit/relative string values in .css - modified from original pull req by brandonaron #78 - #78

Checks for an equals sign to add/substract values - otherwise, reduces string to +digit or -digit to use.

@danheberden danheberden closed this Apr 4, 2011
@danheberden danheberden reopened this Apr 4, 2011
@danheberden
jQuery Foundation member

I opted for the inline testing/filtering of regex vs storing the array as in pull #78 due to the fact taht it was 3-7x faster: http://danheberden.com/share/0d501.png and http://jsperf.com/dh-regex-array-vs-parsing -

danheberden@44a3b58 ( which is part of this branch ) has the refactored code, improved regex and rewritten test cases.

@dmethvin dmethvin merged commit 44a3b58 into jquery:master Apr 6, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.