From 1918258f300cbe3a041f7c3068761597d2c47dbd Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Sat, 1 Nov 2014 12:56:34 -0600 Subject: [PATCH] Throw an error if an illegal screenDisplayStrategy is specified, see #96 --- js/Sim.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/Sim.js b/js/Sim.js index fcb2f040..0270f4f0 100644 --- a/js/Sim.js +++ b/js/Sim.js @@ -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' } );