From d25ff2bddd44b9dac1ceb248424109d1782dd211 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 25 Mar 2017 13:13:57 +0100 Subject: add minionlivesmatter as submodule --- .../assets/jquery/src/css/addGetHookIf.js | 24 ---- .../templates/assets/jquery/src/css/adjustCSS.js | 65 ----------- .../templates/assets/jquery/src/css/curCSS.js | 60 ---------- .../assets/jquery/src/css/defaultDisplay.js | 72 ------------ .../jquery/src/css/hiddenVisibleSelectors.js | 18 --- .../templates/assets/jquery/src/css/showHide.js | 48 -------- .../templates/assets/jquery/src/css/support.js | 121 --------------------- 7 files changed, 408 deletions(-) delete mode 100644 minionlivesmatter/templates/assets/jquery/src/css/addGetHookIf.js delete mode 100644 minionlivesmatter/templates/assets/jquery/src/css/adjustCSS.js delete mode 100644 minionlivesmatter/templates/assets/jquery/src/css/curCSS.js delete mode 100644 minionlivesmatter/templates/assets/jquery/src/css/defaultDisplay.js delete mode 100644 minionlivesmatter/templates/assets/jquery/src/css/hiddenVisibleSelectors.js delete mode 100644 minionlivesmatter/templates/assets/jquery/src/css/showHide.js delete mode 100644 minionlivesmatter/templates/assets/jquery/src/css/support.js (limited to 'minionlivesmatter/templates/assets/jquery/src/css') diff --git a/minionlivesmatter/templates/assets/jquery/src/css/addGetHookIf.js b/minionlivesmatter/templates/assets/jquery/src/css/addGetHookIf.js deleted file mode 100644 index 9cd21f6..0000000 --- a/minionlivesmatter/templates/assets/jquery/src/css/addGetHookIf.js +++ /dev/null @@ -1,24 +0,0 @@ -define( function() { - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - -return addGetHookIf; - -} ); diff --git a/minionlivesmatter/templates/assets/jquery/src/css/adjustCSS.js b/minionlivesmatter/templates/assets/jquery/src/css/adjustCSS.js deleted file mode 100644 index 48fcfec..0000000 --- a/minionlivesmatter/templates/assets/jquery/src/css/adjustCSS.js +++ /dev/null @@ -1,65 +0,0 @@ -define( [ - "../core", - "../var/rcssNum" -], function( jQuery, rcssNum ) { - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, - scale = 1, - maxIterations = 20, - currentValue = tween ? - function() { return tween.cur(); } : - function() { return jQuery.css( elem, prop, "" ); }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - do { - - // If previous iteration zeroed out, double until we get *something*. - // Use string for doubling so we don't accidentally see scale as unchanged below - scale = scale || ".5"; - - // Adjust and apply - initialInUnit = initialInUnit / scale; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Update scale, tolerating zero or NaN from tween.cur() - // Break the loop if scale is unchanged or perfect, or if we've just had enough. - } while ( - scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations - ); - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - -return adjustCSS; -} ); diff --git a/minionlivesmatter/templates/assets/jquery/src/css/curCSS.js b/minionlivesmatter/templates/assets/jquery/src/css/curCSS.js deleted file mode 100644 index 084f8c7..0000000 --- a/minionlivesmatter/templates/assets/jquery/src/css/curCSS.js +++ /dev/null @@ -1,60 +0,0 @@ -define( [ - "../core", - "./var/rnumnonpx", - "./var/rmargin", - "./var/getStyles", - "./support", - "../selector" // Get jQuery.contains -], function( jQuery, rnumnonpx, rmargin, getStyles, support ) { - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - style = elem.style; - - computed = computed || getStyles( elem ); - ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined; - - // Support: Opera 12.1x only - // Fall back to style even without computed - // computed is undefined for elems on document fragments - if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // Support: IE9 - // getPropertyValue is only needed for .css('filter') (#12537) - if ( computed ) { - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // http://dev.w3.org/csswg/cssom/#resolved-values - if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE9-11+ - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - -return curCSS; -} ); diff --git a/minionlivesmatter/templates/assets/jquery/src/css/defaultDisplay.js b/minionlivesmatter/templates/assets/jquery/src/css/defaultDisplay.js deleted file mode 100644 index b1fb577..0000000 --- a/minionlivesmatter/templates/assets/jquery/src/css/defaultDisplay.js +++ /dev/null @@ -1,72 +0,0 @@ -define( [ - "../core", - "../var/document", - "../manipulation" // appendTo -], function( jQuery, document ) { - -var iframe, - elemdisplay = { - - // Support: Firefox - // We have to pre-define these values for FF (#10227) - HTML: "block", - BODY: "block" - }; - -/** - * Retrieve the actual display of a element - * @param {String} name nodeName of the element - * @param {Object} doc Document object - */ - -// Called only from within defaultDisplay -function actualDisplay( name, doc ) { - var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), - - display = jQuery.css( elem[ 0 ], "display" ); - - // We don't have any data stored on the element, - // so use "detach" method as fast way to get rid of the element - elem.detach(); - - return display; -} - -/** - * Try to determine the default display value of an element - * @param {String} nodeName - */ -function defaultDisplay( nodeName ) { - var doc = document, - display = elemdisplay[ nodeName ]; - - if ( !display ) { - display = actualDisplay( nodeName, doc ); - - // If the simple way fails, read from inside an iframe - if ( display === "none" || !display ) { - - // Use the already-created iframe if possible - iframe = ( iframe || jQuery( "