]> source.dussan.org Git - jquery.git/commit
Selector: Inline Sizzle into the selector module
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 29 Jul 2019 19:14:46 +0000 (21:14 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 29 Jul 2019 19:19:21 +0000 (21:19 +0200)
commit47835965bd100a3661d8299d8b769ceeb8b6ce48
tree5ef322bc48cd27d5a5f004e6e3fcf955c67fc9eb
parent79b74e043a4ee737d44a95094ff1184e40bd5b16
Selector: Inline Sizzle into the selector module

This commit removes Sizzle from jQuery, inlining its code & removing obsolete
workarounds where applicable.

The selector-native module has been removed. Further work on the selector
module may decrease the size enough that it will no longer be necessary. If
it turns out it's still useful, we'll reinstate it but the code will look
different anyway as we'll want to share as much code as possible with
the existing selector module.

The Sizzle AUTHORS.txt file has been merged with the jQuery one - people are
sorted by their first contributions to either of the two repositories.

The commit reduces the gzipped jQuery size by 1460 bytes compared to master.

Closes gh-4395
42 files changed:
.mailmap
AUTHORS.txt
Gruntfile.js
README.md
build/release.js
build/release/dist.js
build/release/ensure-sizzle.js [deleted file]
build/tasks/build.js
dist/.eslintrc.json
external/sizzle/LICENSE.txt [deleted file]
external/sizzle/dist/sizzle.js [deleted file]
external/sizzle/dist/sizzle.min.js [deleted file]
external/sizzle/dist/sizzle.min.map [deleted file]
package.json
src/attributes/attr.js
src/attributes/prop.js
src/attributes/val.js
src/core.js
src/core/isAttached.js
src/core/var/rhtml.js [new file with mode: 0644]
src/manipulation.js
src/selector-native.js [deleted file]
src/selector-sizzle.js [deleted file]
src/selector.js
src/selector/contains.js [new file with mode: 0644]
src/selector/escapeSelector.js [new file with mode: 0644]
src/selector/uniqueSort.js [new file with mode: 0644]
src/traversing.js
src/var/pop.js [new file with mode: 0644]
src/wrapper.js
test/data/selector/cache.html [new file with mode: 0644]
test/data/selector/mixed_sort.html
test/data/selector/sizzle_cache.html [deleted file]
test/data/testinit.js
test/unit/attributes.js
test/unit/core.js
test/unit/css.js
test/unit/effects.js
test/unit/event.js
test/unit/manipulation.js
test/unit/selector.js
test/unit/traversing.js