From 0789f869da7d5110530f3b61dfe152f58838c895 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Thu, 17 Mar 2016 11:18:56 -0700 Subject: [PATCH] tankfix --- unpublishedScripts/DomainContent/Home/fishTank/tank.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unpublishedScripts/DomainContent/Home/fishTank/tank.js b/unpublishedScripts/DomainContent/Home/fishTank/tank.js index 2b311209d4..a27e537861 100644 --- a/unpublishedScripts/DomainContent/Home/fishTank/tank.js +++ b/unpublishedScripts/DomainContent/Home/fishTank/tank.js @@ -448,13 +448,15 @@ var props = Entities.getEntityProperties(innerContainer, "boundingBox"); var bounds = null; if (props.hasOwnProperty('boundingBox') === true) { - var bounds = props.boundingBox; + bounds = props.boundingBox; } if (bounds !== null) { lowerCorner = bounds.brn; upperCorner = bounds.tfl; } else { print('NO BOUNDS FOR TANK, returning!!') + print('INNER CONTAINER?' + innerContainer) + print('INNER PROPS :: ' + JSON.stringify(props)); return; } // First pre-load an array with properties on all the other fish so our per-fish loop