Changeset 19637
- Timestamp:
- 02/03/12 11:20:03 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Xul_Wsp/content/Collab/widgets/jsForm/taskInputs.jsm
r19633 r19637 74 74 }, 75 75 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)} 79 81 } 80 82 } … … 97 99 }, 98 100 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)} 102 106 } 103 107 } … … 125 129 }, 126 130 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)} 131 137 } 132 138 }
Note: See TracChangeset
for help on using the changeset viewer.