summaryrefslogtreecommitdiff
path: root/minionlivesmatter/templates/assets/jquery/src/css/showHide.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-25 13:13:57 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-25 13:13:57 +0100
commitd25ff2bddd44b9dac1ceb248424109d1782dd211 (patch)
tree34fcfd824a1a72e7b4d431b688adcea532b62180 /minionlivesmatter/templates/assets/jquery/src/css/showHide.js
parenta2cbdd1b88ac723e5e441c0a3c22636f0a8c4dfd (diff)
downloadmeta-d25ff2bddd44b9dac1ceb248424109d1782dd211.tar.gz
meta-d25ff2bddd44b9dac1ceb248424109d1782dd211.zip
add minionlivesmatter as submodule
Diffstat (limited to 'minionlivesmatter/templates/assets/jquery/src/css/showHide.js')
-rw-r--r--minionlivesmatter/templates/assets/jquery/src/css/showHide.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/minionlivesmatter/templates/assets/jquery/src/css/showHide.js b/minionlivesmatter/templates/assets/jquery/src/css/showHide.js
deleted file mode 100644
index 35e15bd..0000000
--- a/minionlivesmatter/templates/assets/jquery/src/css/showHide.js
+++ /dev/null
@@ -1,48 +0,0 @@
-define( [
- "../data/var/dataPriv"
-], function( dataPriv ) {
-
-function showHide( elements, show ) {
- var display, elem,
- values = [],
- index = 0,
- length = elements.length;
-
- // Determine new display value for elements that need to change
- for ( ; index < length; index++ ) {
- elem = elements[ index ];
- if ( !elem.style ) {
- continue;
- }
-
- display = elem.style.display;
- if ( show ) {
- if ( display === "none" ) {
-
- // Restore a pre-hide() value if we have one
- values[ index ] = dataPriv.get( elem, "display" ) || "";
- }
- } else {
- if ( display !== "none" ) {
- values[ index ] = "none";
-
- // Remember the value we're replacing
- dataPriv.set( elem, "display", display );
- }
- }
- }
-
- // Set the display of the elements in a second loop
- // to avoid the constant reflow
- for ( index = 0; index < length; index++ ) {
- if ( values[ index ] != null ) {
- elements[ index ].style.display = values[ index ];
- }
- }
-
- return elements;
-}
-
-return showHide;
-
-} );