From 67d7a2eefee768b59eb3d51cb1fb2c671873e58a 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 --- Gruntfile.js | 1 + README.md | 3 ++- src/css.js | 22 +--------------- src/css/showHide.js | 27 ++++++++++++++++--- test/unit/basic.js | 10 +++++++- test/unit/css.js | 57 ++++++++++++++++++++++++----------------- test/unit/dimensions.js | 16 ++++++------ test/unit/queue.js | 3 +++ 8 files changed, 81 insertions(+), 58 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 143c6631a..aa919bb08 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -70,6 +70,7 @@ module.exports = function( grunt ) { ajax: [ "manipulation/_evalUrl", "event/ajax" ], callbacks: [ "deferred" ], css: [ "effects", "dimensions", "offset" ], + "css/showHide": [ "effects" ], sizzle: [ "css/hiddenVisibleSelectors", "effects/animatedSelector" ] } } diff --git a/README.md b/README.md index de6e1bb82..53b6f3fd7 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 `