Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit297d18d

Browse files
authored
CSS: Includeshow,hide &toggle methods in the jQuery slim build
The `show()`, `hide()` & `toggle()` methods were included in the 3.x jQueryslim build. The jQuery master build accidentally started to exclude them asthey were only imported in the effects module and the new Rollup-based buildsystem follows the module dependency graph when excluding modules.To resolve the issue, import the `css/showHide.js` file directly in the main`jquery.js` file.Closesgh-4704Refjquery/jquery-migrate#346
1 parent3d62d57 commit297d18d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

‎src/jquery.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import "./manipulation/_evalUrl.js";
1616
import"./wrap.js";
1717
import"./css.js";
1818
import"./css/hiddenVisibleSelectors.js";
19+
import"./css/showHide.js";
1920
import"./serialize.js";
2021
import"./ajax.js";
2122
import"./ajax/xhr.js";

‎test/unit/css.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,9 +487,6 @@ QUnit.test( "css(Object) where values are Functions with incoming values", funct
487487
jQuery("#cssFunctionTest").remove();
488488
});
489489

490-
// .show(), .hide(), can be excluded from the build
491-
if(jQuery.fn.show&&jQuery.fn.hide){
492-
493490
QUnit.test("show()",function(assert){
494491

495492
assert.expect(18);
@@ -968,8 +965,6 @@ QUnit.test( "show/hide 3.0, inline hidden", function( assert ) {
968965
});
969966
});
970967

971-
}
972-
973968
QUnit[QUnit.jQuerySelectors&&jQuery.fn.toggle ?"test" :"skip"]("toggle()",function(assert){
974969
assert.expect(9);
975970
vardiv,oldHide,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp