Skip to content

Commit

Permalink
make Browser.showTracks a no-op if it is passed nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Jun 5, 2012
1 parent dd0b5fd commit 9408149
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/Browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,9 @@ Browser.prototype.showTracks = function( trackNames ) {
if( typeof trackNames == 'string' )
trackNames = trackNames.split(',');

if( ! trackNames )
return;

var trackConfs = dojo.filter(
dojo.map( trackNames, function(n) {
return this.trackConfigsByName[n];
Expand Down

0 comments on commit 9408149

Please sign in to comment.