[TASK] Remove obsolete jQuery plugin 'matchHeight' 49/53149/4
authorJasmina Liessmann <code@frauliessmann.de>
Wed, 7 Jun 2017 08:53:42 +0000 (10:53 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 8 Jun 2017 14:02:43 +0000 (16:02 +0200)
Since using flexbox for displaying boxes at the same height in module
'About' the jQuery plugin 'matchHeight' is not needed anymore.

Resolves: #81493
Releases: master
Change-Id: I1f593111804cd34f66beee472cbdd4ac258fc0ab
Reviewed-on: https://review.typo3.org/53149
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Build/Gruntfile.js
Build/package.json
Build/tsconfig.json
typo3/sysext/about/Resources/Private/Partials/ExternalLibraries.html
typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery.matchHeight-min.js [deleted file]

index a2ef228..cffbb2c 100644 (file)
@@ -411,7 +411,6 @@ module.exports = function (grunt) {
                                },
                                files: {
                                        'nprogress.js': 'nprogress/nprogress.js',
-                                       'jquery.matchHeight-min.js': 'jquery-match-height/dist/jquery.matchHeight-min.js',
                                        'jquery.dataTables.js': 'datatables/media/js/jquery.dataTables.min.js',
                                        'require.js': 'requirejs/require.js',
                                        'moment.js': 'moment/min/moment-with-locales.min.js',
index 3b7cd97..eefed48 100644 (file)
@@ -44,7 +44,6 @@
     "imagesloaded": "^4.1.1",
     "jasmine-core": "~2.6.0",
     "jquery": "^3.2.1",
-    "jquery-match-height": "^0.7.2",
     "jquery-ui": "^1.11.4",
     "karma": "^1.3.0",
     "karma-chrome-launcher": "^2.0.0",
index e8953c2..9f2409d 100644 (file)
@@ -14,9 +14,6 @@
         "baseUrl": ".",
         "rootDir": "../",
         "paths": {
-            "TYPO3/CMS/About/*": [
-                "../typo3/sysext/about/Resources/Public/JavaScript/*"
-            ],
             "TYPO3/CMS/Backend/*": [
                 "../typo3/sysext/backend/Resources/Public/JavaScript/*"
             ],
index c94950f..4168b6e 100644 (file)
                        <td><a href="http://imagesloaded.desandro.com" target="_blank" rel="noopener noreferrer">imagesloaded.desandro.com</a></td>
                </tr>
                <tr>
-                       <td>jQuery Plugin: MatchHeight</td>
-                       <td><a href="http://brm.io/jquery-match-height/" target="_blank" rel="noopener noreferrer">brm.io</a></td>
-               </tr>
-               <tr>
                        <td>jQuery Plugin: MiniColors</td>
                        <td><a href="http://labs.abeautifulsite.net/jquery-minicolors/" target="_blank" rel="noopener noreferrer">labs.abeautifulsite.net</a></td>
                </tr>
diff --git a/typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery.matchHeight-min.js b/typo3/sysext/core/Resources/Public/JavaScript/Contrib/jquery.matchHeight-min.js
deleted file mode 100644 (file)
index 50936e8..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
-* jquery-match-height 0.7.2 by @liabru
-* http://brm.io/jquery-match-height/
-* License MIT
-*/
-!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}),r},i=function(e){var o={
-byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,
-r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0",
-"padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={
-display:n};a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),
-this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i;
-}n?o===-1&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})});
\ No newline at end of file