Changes between Initial Version and Version 1 of Ticket #16441, comment 1


Ignore:
Timestamp:
Dec 7, 2012, 12:53:07 PM (8 years ago)
Author:
chrisacky
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16441, comment 1

    initial v1  
    11I just realised actually that the connect that I do is wrong, since the `inRowIndex` that gets passed to the this._onEditBlur function will be wrong for events after the first edit.
     2
     3This is a less than ideal (but works) fix
     4
     5
     6
     7{{{
     8this._inRowIndex = inRowIndex;
     9if(!this.widget){
     10        this.widget = this.createWidget.apply(this, arguments);
     11        connect.connect( this.widget, "_onBlur", this, function(){
     12           this._onEditBlur( this._inRowIndex );
     13            delete this._inRowIndex;
     14        });
     15} else {
     16        this.attachWidget.apply(this, arguments);
     17}
     18}}}