From 7b80263718187dbd7400b21d637aaa32d5a8804c Mon Sep 17 00:00:00 2001 From: Ian Gilman Date: Thu, 21 Aug 2014 10:11:21 -0700 Subject: [PATCH] Reinstating a small check. --- src/viewer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/viewer.js b/src/viewer.js index 45714ac2..93c8394b 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2810,7 +2810,9 @@ function lightUp() { function onHome() { - this.viewport.goHome(); + if ( this.viewport ) { + this.viewport.goHome(); + } }