Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
amend(select): remove dead setUntouched code
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler committed Nov 29, 2015
1 parent db458cb commit 3dc0f14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,17 +442,15 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $compile, $par
preserveScope: true,
skipCompile: true,
element: selectContainer,
preserveElement: true,
target: element[0],
hasBackdrop: true,
parent: element,
loadingAsync: attr.mdOnOpen ? scope.$eval(attr.mdOnOpen) || true : false
}).finally(function() {
selectScope.isOpen = false;
ngModelCtrl.$setTouched();
});

function setUntouched() {
ngModelCtrl.$setUntouched();
}
}
};
}
Expand Down

0 comments on commit 3dc0f14

Please sign in to comment.