Better way to instantiate this variable.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Apr 2009 19:18:43 +0000 (13:18 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 7 Apr 2009 19:29:37 +0000 (13:29 -0600)
imp/js/src/ViewPort.js

index 589157e..2af3ccd 100644 (file)
@@ -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)