From bc5da10882ce995bc9e503750805c9957db128ec Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 20 Oct 2009 01:58:10 -0600 Subject: [PATCH] Fix documentation --- imp/js/DimpCore.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/imp/js/DimpCore.js b/imp/js/DimpCore.js index 48c94f3ca..871d852fe 100644 --- a/imp/js/DimpCore.js +++ b/imp/js/DimpCore.js @@ -452,17 +452,6 @@ var DimpCore = { }); } - /* Don't do additional onload stuff if we are in a popup. We need a - * try/catch block here since, if the page was loaded by an opener - * out of this current domain, this will throw an exception. */ - try { - if (parent.opener && - parent.opener.location.host == window.location.host && - parent.opener.DimpCore) { - DIMP.baseWindow = parent.opener.DIMP.baseWindow || parent.opener; - } - } catch (e) {} - /* Add Growler notification handler. */ this.Growler = new Growler({ location: 'br', @@ -472,6 +461,17 @@ var DimpCore = { /* Add click handler. */ document.observe('click', DimpCore.clickHandler.bindAsEventListener(DimpCore)); + + /* Determine base window. Need a try/catch block here since, if the + * page was loaded by an opener out of this current domain, this will + * throw an exception. */ + try { + if (parent.opener && + parent.opener.location.host == window.location.host && + parent.opener.DimpCore) { + DIMP.baseWindow = parent.opener.DIMP.baseWindow || parent.opener; + } + } catch (e) {} } }; -- 2.11.0