Changeset 33

Show
Ignore:
Timestamp:
11/01/08 21:19:09 (4 years ago)
Author:
tsuckowhomberg
google:author:
tsuckowhomberg
Message:
  • fixed: (Toolbar.js) when passing the grid as config parameter, the immediate call to "bind" would throw an error since the views's "ds" property is not available yet
Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r31 r33  
    1 Version 0.3a2 (GPL) 
     1Version 0.3a3 (GPL) 
     21-November-2008 
     3 
     4 - fixed: (Toolbar.js) when passing the grid as config parameter, the immediate 
     5call to "bind" would throw an error since the views's "ds" property is not available 
     6yet 
     7 
     8 
     9Version 0.3a2 (GPL) 
    2101-November-2008 
    311 
  • trunk/src/Toolbar.js

    r31 r33  
    7979 
    8080        if (this.grid) { 
    81             this.bind(this.grid.getView()); 
    82         } else if (this.view) { 
    83             var me = this; 
    84             this.view.init = this.view.init.createSequence(function(){ 
    85                 me.bind(this); 
    86             }, this.view); 
    87         } else { 
    88             throw("Ext.ux.grid.livegrid.Toolbar - cfg property view or grid is not available"); 
    89         } 
     81            this.view = this.grid.getView(); 
     82        } 
     83 
     84        var me = this; 
     85        this.view.init = this.view.init.createSequence(function(){ 
     86            me.bind(this); 
     87        }, this.view); 
    9088    }, 
    9189