From 3842246024475eafdc8a00a7ac4358d06d76cab2 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Fri, 9 Oct 2015 15:52:29 -0400 Subject: [PATCH] CSS: Make show/hide/toggle methods a module Unit test changes some uses of .show() and .hide() to .css( "display", ... ), there was already an implicit assumption in several of the existing tests. Fixes gh-2193 Close gh-2648 (cherry picked from commit 67d7a2eefee768b59eb3d51cb1fb2c671873e58a) Conflicts: Gruntfile.js src/css.js src/css/showHide.js test/unit/css.js --- Gruntfile.js | 4 ++- README.md | 3 ++- src/css.js | 22 +--------------- src/css/showHide.js | 26 +++++++++++++++++-- test/unit/basic.js | 10 +++++++- test/unit/css.js | 57 ++++++++++++++++++++++++----------------- test/unit/dimensions.js | 24 ++++++----------- test/unit/queue.js | 3 +++ 8 files changed, 83 insertions(+), 66 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index ced59f288..21d103348 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -67,7 +67,9 @@ module.exports = function( grunt ) { removeWith: { ajax: [ "manipulation/_evalUrl", "event/ajax" ], callbacks: [ "deferred" ], - css: [ "effects", "dimensions", "offset" ] + css: [ "effects", "dimensions", "offset" ], + "css/showHide": [ "effects" ], + sizzle: [ "css/hiddenVisibleSelectors", "effects/animatedSelector" ] } } }, diff --git a/README.md b/README.md index 3c1b2f355..342abdd9a 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,8 @@ Some example modules that can be excluded are: - **ajax/xhr**: The XMLHTTPRequest AJAX transport only. - **ajax/script**: The `