@@ -357,14 +357,6 @@ var LocationIndex = _location.LocationIndex;
357357 });
358358 */
359359 /*
360- addLinter('W004', function lintRemoteModals($, reporter) {
361- var remoteModalTriggers = $('[data-toggle="modal"][data-remote]');
362- if (remoteModalTriggers.length) {
363- reporter('Found one or more modals using the deprecated `remote` option', remoteModalTriggers);
364- }
365- });
366- */
367- /*
368360 addLinter('W005', function lintJquery($, reporter) {
369361 var OLD_JQUERY = 'Found what might be an outdated version of jQuery; Bootstrap requires jQuery v' + MIN_JQUERY_VERSION + ' or higher';
370362 var NO_JQUERY_BUT_BS_JS = 'Unable to locate jQuery, which is required for Bootstrap\'s JavaScript plugins to work';
@@ -866,7 +858,6 @@ var LocationIndex = _location.LocationIndex;
866858 }
867859 });
868860 */
869- /*
870861 addLinter ( 'E022' , function lintModalsWithinOtherComponents ( $ , reporter ) {
871862 var selector = [
872863 '.table .modal' ,
@@ -877,7 +868,6 @@ var LocationIndex = _location.LocationIndex;
877868 reporter ( 'Modal markup should not be placed within other components, so as to avoid the component\'s styles interfering with the modal\'s appearance or functionality' , badNestings ) ;
878869 }
879870 } ) ;
880- */
881871 /*
882872 addLinter('E023', function lintPanelBodyWithoutPanel($, reporter) {
883873 var badPanelBody = $('.panel-body').parent(':not(.panel, .panel-collapse)');
@@ -992,7 +982,6 @@ var LocationIndex = _location.LocationIndex;
992982 }
993983 });
994984 */
995- /*
996985 addLinter ( 'E032' , function lintModalStructure ( $ , reporter ) {
997986 var elements ;
998987
@@ -1026,7 +1015,6 @@ var LocationIndex = _location.LocationIndex;
10261015 reporter ( '`.modal-title` must be a child of `.modal-header`' , elements ) ;
10271016 }
10281017 } ) ;
1029- */
10301018 /*
10311019 addLinter('E033', function lintAlertMissingDismissible($, reporter) {
10321020 var alertsMissingDismissible = $('.alert:not(.alert-dismissible):has([data-dismiss="alert"])');
@@ -1087,14 +1075,6 @@ var LocationIndex = _location.LocationIndex;
10871075 });
10881076 */
10891077 /*
1090- addLinter('E040', function lintModalHide($, reporter) {
1091- var modalsWithHide = $('.modal.hide');
1092- if (modalsWithHide.length) {
1093- reporter('`.hide` should not be used on `.modal` in Bootstrap v3.', modalsWithHide);
1094- }
1095- });
1096- */
1097- /*
10981078 addLinter('E041', function lintCarouselStructure($, reporter) {
10991079 var carouselsWithWrongInners = $('.carousel').filter(function () {
11001080 return $(this).children('.carousel-inner').length !== 1;
@@ -1166,14 +1146,12 @@ var LocationIndex = _location.LocationIndex;
11661146 }
11671147 });
11681148 */
1169- /*
11701149 addLinter ( 'E046' , function lintModalTabIndex ( $ , reporter ) {
11711150 var modalsWithoutTabindex = $ ( '.modal:not([tabindex])' ) ;
11721151 if ( modalsWithoutTabindex . length ) {
11731152 reporter ( '`.modal` elements must have a `tabindex` attribute.' , modalsWithoutTabindex ) ;
11741153 }
11751154 } ) ;
1176- */
11771155 /*
11781156 addLinter('E047', function lintBtnElements($, reporter) {
11791157 var btns = $('.btn:not(a,button,input,label)');
@@ -1182,22 +1160,18 @@ var LocationIndex = _location.LocationIndex;
11821160 }
11831161 });
11841162 */
1185- /*
11861163 addLinter ( 'E048' , function lintModalRole ( $ , reporter ) {
11871164 var modals = $ ( '.modal:not([role="dialog"])' ) ;
11881165 if ( modals . length ) {
11891166 reporter ( '`.modal` must have a `role="dialog"` attribute.' , modals ) ;
11901167 }
11911168 } ) ;
1192- */
1193- /*
11941169 addLinter ( 'E049' , function lintModalDialogRole ( $ , reporter ) {
11951170 var modalDialogs = $ ( '.modal-dialog:not([role="document"])' ) ;
11961171 if ( modalDialogs . length ) {
11971172 reporter ( '`.modal-dialog` must have a `role="document"` attribute.' , modalDialogs ) ;
11981173 }
11991174 } ) ;
1200- */
12011175 /*
12021176 addLinter('E050', function lintNestedFormGroups($, reporter) {
12031177 var nestedFormGroups = $('.form-group > .form-group');
0 commit comments