diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-08 00:06:51 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-11-08 00:06:51 (GMT) |
commit | a4a2ba14120cf1c0999786c5c153ed07e5e484dd (patch) | |
tree | 03de0f0a2c5da1d1a3670d6c04bb26ee31a8ff32 /apps/samples/vrml/viewer.js | |
parent | 63907d01004264445645453cb8ae6eeba7ab540a (diff) | |
download | uscxml-a4a2ba14120cf1c0999786c5c153ed07e5e484dd.zip uscxml-a4a2ba14120cf1c0999786c5c153ed07e5e484dd.tar.gz uscxml-a4a2ba14120cf1c0999786c5c153ed07e5e484dd.tar.bz2 |
Cleanup in miles.js
Diffstat (limited to 'apps/samples/vrml/viewer.js')
-rw-r--r-- | apps/samples/vrml/viewer.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/samples/vrml/viewer.js b/apps/samples/vrml/viewer.js index 18b3a85..ed62047 100644 --- a/apps/samples/vrml/viewer.js +++ b/apps/samples/vrml/viewer.js @@ -39,11 +39,13 @@ function VRMLViewer(element, params) { this.resRoot = ""; // copy over values from constructor arguments - for (var param in params) { - if (self.hasOwnProperty(param)) - self[param] = params[param]; + if (params) { + for (var param in params) { + if (self.hasOwnProperty(param)) + self[param] = params[param]; + } } - + // normalize parameters // make sure server url begins with protocol and does *not* ends in / |