]> source.dussan.org Git - jquery-ui.git/commit
All: Stop relying on jquery-patch.js internally, add tests
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Fri, 10 May 2024 12:45:59 +0000 (14:45 +0200)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Tue, 14 May 2024 22:38:40 +0000 (00:38 +0200)
commit9887579b61972647f1478e64c5d7987f9d9cb039
treec592a65dd9a8f9a6a7a3a31892eec299e1799a80
parentf90eab84b5e9a65ce62f18106e3db0ee316913f6
All: Stop relying on jquery-patch.js internally, add tests

Avoid relying on jQuery patches. Instead:
* use `CSS.escape` instead of `jQuery.escapeSelector`
* use `.filter()` with a proper handler instead of `.even()`

Keep `jquery-patch.js` for backwards compatibility, though.

Also, add tests for jquery-patch.

Ref gh-2249
16 files changed:
build/tasks/testswarm.js
tests/lib/bootstrap.js
tests/runner/flags/suites.js
tests/unit/accordion/common.js
tests/unit/all.html
tests/unit/index.html
tests/unit/jquery-patch/all.html [new file with mode: 0644]
tests/unit/jquery-patch/core.js [new file with mode: 0644]
tests/unit/jquery-patch/jquery-patch.html [new file with mode: 0644]
ui/core.js
ui/jquery-patch.js
ui/labels.js
ui/widgets/accordion.js
ui/widgets/checkboxradio.js
ui/widgets/selectmenu.js
ui/widgets/tabs.js