Skip to content

Commit

Permalink
Throw an error if an illegal screenDisplayStrategy is specified, see #96
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Nov 1, 2014
1 parent 7f13613 commit 1918258
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/Sim.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,9 @@ define( function( require ) {
updateBackground();
} );
}
else {
throw new Error( "invalid value for options.screenDisplayStrategy: " + options.screenDisplayStrategy );
}

// layer for popups, dialogs, and their backgrounds and barriers
this.topLayer = new Node( { renderer: 'svg' } );
Expand Down

0 comments on commit 1918258

Please sign in to comment.