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

Commit

Permalink
fix(navbar): fixes navbar logic in angular 1.3
Browse files Browse the repository at this point in the history
Closes #8419
  • Loading branch information
gmoothart authored and ThomasBurleson committed May 12, 2016
1 parent e9a1d4f commit 2b8d18f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/navBar/navBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,9 @@ function MdNavItemController($element) {
/** @private {boolean} */
this._focused = false;

var hasNavClick = this.mdNavClick != null;
var hasNavHref = this.mdNavHref != null;
var hasNavSref = this.mdNavSref != null;
var hasNavClick = !!($element.attr('md-nav-click'));
var hasNavHref = !!($element.attr('md-nav-href'));
var hasNavSref = !!($element.attr('md-nav-sref'));

// Cannot specify more than one nav attribute
if ((hasNavClick ? 1:0) + (hasNavHref ? 1:0) + (hasNavSref ? 1:0) > 1) {
Expand Down

0 comments on commit 2b8d18f

Please sign in to comment.