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

Commit

Permalink
amend(menu): remove unnecessary querySelector, restore tests
Browse files Browse the repository at this point in the history
references #3675
  • Loading branch information
rschmukler committed Jul 12, 2015
1 parent 8609318 commit 898fd9b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/menu/menu.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('md-menu directive', function () {
expect(getOpenMenuContainer().length).toBe(0);
}));

ddescribe('closes with -', function() {
describe('closes with -', function() {
it('closes on normal option click', function () {
expect(getOpenMenuContainer().length).toBe(0);

Expand Down
1 change: 0 additions & 1 deletion src/components/select/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ function SelectDirective($mdSelect, $mdUtil, $mdTheming, $mdAria, $interpolate,
$mdTheming(element);

if (attr.name && formCtrl) {
var selectEl = element.parent()[0].querySelector('select[name=".' + attr.name + '"]');
formCtrl.$removeControl(ngModelCtrl);
}

Expand Down

0 comments on commit 898fd9b

Please sign in to comment.