Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit 8ae664f

Browse files
wesleychoicfantv
authored andcommitted
chore(tabs): remove disabled support
- Remove deprecated `disabled` support Closes #4383
1 parent ff52f52 commit 8ae664f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Diff for: src/tabs/tabs.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ angular.module('ui.bootstrap.tabs', [])
186186
</file>
187187
</example>
188188
*/
189-
.directive('tab', ['$parse', '$log', function($parse, $log) {
189+
.directive('tab', ['$parse', function($parse) {
190190
return {
191191
require: '^tabset',
192192
restrict: 'EA',
@@ -217,17 +217,6 @@ angular.module('ui.bootstrap.tabs', [])
217217
});
218218
}
219219

220-
// Deprecation support of "disabled" parameter
221-
// fix(tab): IE9 disabled attr renders grey text on enabled tab #2677
222-
// This code is duplicated from the lines above to make it easy to remove once
223-
// the feature has been completely deprecated
224-
if (attrs.disabled) {
225-
$log.warn('Use of "disabled" attribute has been deprecated, please use "disable"');
226-
scope.$parent.$watch($parse(attrs.disabled), function(value) {
227-
scope.disabled = !! value;
228-
});
229-
}
230-
231220
scope.select = function() {
232221
if (!scope.disabled) {
233222
scope.active = true;

0 commit comments

Comments
 (0)