Changeset 19637


Ignore:
Timestamp:
02/03/12 11:20:03 (4 months ago)
Author:
anp
Message:

taskInput : debug init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Wsp/content/Collab/widgets/jsForm/taskInputs.jsm

    r19633 r19637  
    7474        }, 
    7575        buildBody: function(pDomParentElt, pContext){ 
    76                 var vInput = wspJsForm.XedInputArea.prototype.buildBody.call(this, pDomParentElt, pContext); 
    77                 if("_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 
    78                 return vInput; 
     76                try{ 
     77                        var vInput = wspJsForm.XedInputArea.prototype.buildBody.call(this, pDomParentElt, pContext); 
     78                        if(vInput && "_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 
     79                        return vInput; 
     80                }catch(e){log.debug(e)} 
    7981        } 
    8082} 
     
    9799        }, 
    98100        buildBody: function(pDomParentElt, pContext){ 
    99                 var vInput = wspJsForm.XedInputArea.prototype.buildBody.call(this, pDomParentElt, pContext); 
    100                 if("_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 
    101                 return vInput; 
     101                try{ 
     102                        var vInput = wspJsForm.XedInputArea.prototype.buildBody.call(this, pDomParentElt, pContext); 
     103                        if(vInput && "_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 
     104                        return vInput; 
     105                }catch(e){log.debug(e)} 
    102106        } 
    103107} 
     
    125129        }, 
    126130        buildBody: function(pDomParentElt, pContext){ 
    127                 var vInput = this.buildBaseBody(pDomParentElt, pContext); 
    128                 vInput.setAttribute("genCd", this.fGenCd); 
    129                 if("_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 
    130                 return vInput; 
     131                try{ 
     132                        var vInput = this.buildBaseBody(pDomParentElt, pContext); 
     133                        vInput.setAttribute("genCd", this.fGenCd); 
     134                        if(vInput && "_closedStatus" in this) vInput.setAttribute("closed", this._closedStatus); 
     135                        return vInput; 
     136                }catch(e){log.debug(e)} 
    131137        } 
    132138} 
Note: See TracChangeset for help on using the changeset viewer.