Skip to content

Commit

Permalink
fix: fixes angular#269.
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed Apr 7, 2016
1 parent b9f5a43 commit 8664ee9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/components/sidenav/sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ import {Dir} from '../../core/rtl/dir';
import {PromiseCompleter} from 'angular2/src/facade/promise';


/**
* Exception thrown when a MdSidenavLayout is missing both sidenavs.
*/
export class MdMissingSidenavException extends BaseException {}

/**
* Exception thrown when two MdSidenav are matching the same side.
*/
Expand Down Expand Up @@ -286,9 +281,6 @@ export class MdSidenavLayout implements AfterContentInit {
*/
private _validateDrawers() {
this._start = this._end = null;
if (this._sidenavs.length === 0) {
throw new MdMissingSidenavException();
}

// Ensure that we have at most one start and one end sidenav.
this._sidenavs.forEach(sidenav => {
Expand Down

0 comments on commit 8664ee9

Please sign in to comment.