aboutsummaryrefslogtreecommitdiffstats
path: root/AUTHORS.txt
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2022-01-24 18:56:49 +0100
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2022-01-25 00:35:50 +0100
commit9b34bdb1c35c5c2bdb367dd80928825874d3ec3f (patch)
treee790760e2ede6510140f2d100b6ee7249179f650 /AUTHORS.txt
parent95e34b69554cf9d3a52e4d932e581344990f60fa (diff)
downloadjquery-9b34bdb1c35c5c2bdb367dd80928825874d3ec3f.tar.gz
jquery-9b34bdb1c35c5c2bdb367dd80928825874d3ec3f.zip
CSS: Skip falsy values in `addClass( array )`, compress code
This change makes jQuery skip falsy values in `addClass( array )` & `removeClass( array )` instead of stopping iteration when the first falsy value is detected. This makes code like: ```js elem.addClass( [ "a", "", "b" ] ); ``` add both the `a` & `b` classes. The code was also optimized for size a bit so it doesn't increase the minified gzipped size. Fixes gh-4998 Closes gh-5003 (partially cherry picked from commit a338b407f2479f82df40635055effc163835183f)
Diffstat (limited to 'AUTHORS.txt')
0 files changed, 0 insertions, 0 deletions