From: SourceForge.net <no...@so...> - 2005-08-07 15:16:38
|
Bugs item #1253578, was opened at 2005-08-07 15:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1253578&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DynAPI 3 API Group: Verified Status: Open Resolution: None Priority: 5 Submitted By: qq365 (qq365) Assigned to: Nobody/Anonymous (nobody) Summary: Need to avoid some one adding protype to object Initial Comment: In other js file, someone maybe add function like: object.prototype.toXML so, need to avoid some one adding protype to object. For example: in event.js, line 342 ---need change for (id in this._childAnchors) this._updateAnchor(id); ---to for (id in this._childAnchors) { if(typeof this._childAnchors[id] != 'function') this._updateAnchor(id); } in ioelement.sync.js, line 33 ---need change nv[nv.length]=i+'='+((mod!='get')? data [i]:IOElement.URLEncode(data[i])); ---to if(typeof data[i] !="function") nv[nv.length]=i+'='+((mod!='get')? data [i]:IOElement.URLEncode(data[i])); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1253578&group_id=5757 |