From 44a42058fe3ebb48be7130f5ab895a1d4c8db8ce Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 7 Apr 2009 13:18:43 -0600 Subject: [PATCH] Better way to instantiate this variable. --- imp/js/src/ViewPort.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/imp/js/src/ViewPort.js b/imp/js/src/ViewPort.js index 589157eea..2af3ccdcc 100644 --- a/imp/js/src/ViewPort.js +++ b/imp/js/src/ViewPort.js @@ -1466,6 +1466,10 @@ ViewPort_Filter = Class.create({ * ViewPort_Selection */ ViewPort_Selection = Class.create({ + + // Define property to aid in object detection + viewport_selection: true, + // Formats: // 'dataob' = Data objects // 'div' = DOM DIVs @@ -1479,9 +1483,6 @@ ViewPort_Selection = Class.create({ if (!Object.isUndefined(format)) { this.add(format, data); } - - // Define property to aid in object detection - this.viewport_selection = true; }, add: function(format, d) -- 2.11.0