[fusion-commits] r2224 - sandbox/jxlib-3.0/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Fri Sep 10 10:46:57 EDT 2010


Author: pagameba
Date: 2010-09-10 14:46:57 +0000 (Fri, 10 Sep 2010)
New Revision: 2224

Modified:
   sandbox/jxlib-3.0/lib/jxlib.uncompressed.js
Log:
cleaned up jxlib 3 build with some grid plugin changes required by the framework but not originally implemented.

Modified: sandbox/jxlib-3.0/lib/jxlib.uncompressed.js
===================================================================
--- sandbox/jxlib-3.0/lib/jxlib.uncompressed.js	2010-09-10 14:21:19 UTC (rev 2223)
+++ sandbox/jxlib-3.0/lib/jxlib.uncompressed.js	2010-09-10 14:46:57 UTC (rev 2224)
@@ -18482,7 +18482,7 @@
      * Returns: true | false
      */
     valid : function () {
-        return ($defined(this.data[this.index]));
+        return ($defined(this.data) && $defined(this.data[this.index]));
     },
 
     /**
@@ -33528,6 +33528,8 @@
 
     Family: 'Jx.Plugin.Grid.Selector',
     Extends : Jx.Plugin,
+    
+    name: 'Selector',
 
     Binds: ['select','checkSelection','checkAll','afterGridRender','onCellClick'],
 
@@ -33600,6 +33602,7 @@
         if (!$defined(grid) && !(grid instanceof Jx.Grid)) {
             return;
         }
+        this.parent(grid);
         var options = this.options,
             template;
         this.grid = grid;
@@ -34096,7 +34099,9 @@
 Jx.Plugin.Grid.Prelighter = new Class({
 
     Extends : Jx.Plugin,
-
+    
+    name: 'Prelighter',
+    
     options : {
         /**
          * Option: cell
@@ -34148,6 +34153,7 @@
         if (!$defined(grid) && !(grid instanceof Jx.Grid)) {
             return;
         }
+        this.parent(grid);
         this.grid = grid;
         // this.grid.wantEvent('gridCellEnter');
         // this.grid.wantEvent('gridCellLeave');
@@ -34401,6 +34407,8 @@
  Jx.Plugin.Grid.Sorter = new Class({
    Family: 'Jx.Plugin.Grid.Sorter',
    Extends: Jx.Plugin,
+   name: 'Prelighter',
+   
    Binds: ['sort', 'modifyHeaders'],
 
    /**
@@ -34427,10 +34435,10 @@
     * will be monitoring
     */
    attach: function(grid) {
-     this.parent(grid);
-     if (!$defined(grid) && !(grid instanceof Jx.SimpleGrid)) {
+     if (!$defined(grid) && !(grid instanceof Jx.Grid)) {
          return;
      }
+     this.parent(grid);
 
      this.grid = grid;
 
@@ -34533,6 +34541,9 @@
 Jx.Plugin.Grid.Resize = new Class({
 
     Extends : Jx.Plugin,
+    
+    name: 'Resize',
+    
     Binds: ['createHandles','removeHandles'],
     options: {
         /**
@@ -34575,10 +34586,10 @@
      * Sets up the plugin and connects it to the grid
      */
     attach: function (grid) {
-      this.parent(grid);
       if (!$defined(grid) && !(grid instanceof Jx.Grid)) {
           return;
       }
+      this.parent(grid);
       this.grid = grid;
       if (grid.columns.useHeaders()) {
         this.grid.addEvent('doneCreateGrid', this.createHandles);
@@ -34733,6 +34744,9 @@
 Jx.Plugin.Grid.Editor = new Class({
 
     Extends : Jx.Plugin,
+    
+    name: 'Editor',
+    
     Binds: ['activate','deactivate','changeText','onCellClick'],
 
     options : {
@@ -34972,6 +34986,7 @@
       if (!$defined(grid) && !(grid instanceof Jx.Grid)) {
         return;
       }
+      this.parent(grid);
       this.grid = grid;
 
       //this.grid.gridTableBody.addEvent('click', this.onCellClick);



More information about the fusion-commits mailing list