Hi,
We saw the following error today with 6.5.1 when trying to call _12.destroy() in the code snippet below. Any idea how this could've happened?
We saw the following error today with 6.5.1 when trying to call _12.destroy() in the code snippet below. Any idea how this could've happened?
Code:
_12 is undefined ,isc.A.hideField=function(_1,_2){arguments.$cw=this;var _3=_1;_3=this.getSpecifiedField(_3);if(_3==null){this.logWarn("hideField(): unable to find field object for field: "+_1+". Taking no action. To add this field use the setFields() method.") return} _3.showIf=this.$18r;if(!this.fields.contains(_3))return;var _4=this.fields.indexOf(_3),_5=this.getFieldName(_4);if(this.sortFieldNum==_4)this.sortFieldNum=null;else if(this.sortFieldNum!=null&&this.sortFieldNum>_4)this.sortFieldNum-=1;if(this.completeFields==null||this.frozenFields){this.setFields(this.completeFields||this.fields);return} var _6=this.$30a;if(_6){var _7=this.getEditRow(),_8=this.getEditCol();if(this.editByCell){if(_8==_4)this.cancelEditing(isc.ListGrid.PROGRAMMATIC);_6=false}else{var _9=this.getEditFormItem(_4);if(_9)_9.blurItem();this.clearEditValue(_7,_8,true);if(_8==_4){var _10=this.findNextEditCell(_7,_8,-1,true,false,false,true);if(_10==null||_10[0]!=_7){_10=this.findNextEditCell(_7,_8,1,true,false,false,true)} if(_10==null||_10[0]!=_7){this.cancelEditing(isc.ListGrid.PROGRAMMATIC);_6=false}else{this.$31u(_10[0],_10[1])}}else if(this.getEditCol()>_4){this.$30u-=1}}} this.deriveVisibleFields();var _11=this.header;if(_11!=null){if(!_2)this.header.hPolicy="fill";var _12=this.header.getButton(_4);this.header.removeMember(_12);if(this.headerMenuButton&&this.headerMenuButton.masterElement==_12){this.headerMenuButton.depeer()} _12.destroy()}
Comment