Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 3 | 0.956 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 828 | Closure/closure/goog/net/xhrio.js |
2 | 2 | 838 | Closure/closure/goog/net/xhrio.js |
| ||||
/** * Get the response text from the Xhr object * Will only return correct result when called from the context of a callback * @return {string} Result from the server. */ goog.net.XhrIo.prototype.getResponseText= function ( ) { return this.xhr_ ? this.xhr_.responseText : ''; } ; |
| ||||
/** * Get the response XML from the Xhr object * Will only return correct result when called from the context of a callback * @return {Document} The DOM Document representing the XML file. */ goog.net.XhrIo.prototype.getResponseXml= function ( ) { return this.xhr_ ? this.xhr_.responseXML : null; } ; |
| |||
/** * Get the response XML from the Xhr object * Will only return correct result when called from the context of a callback * @return {Document} The DOM Document representing the XML file. */ /** * Get the response text from the Xhr object * Will only return correct result when called from the context of a callback * @return {string} Result from the server. */ goog.net.XhrIo.prototype. [[#variable20d5c440]]= function ( ) { return this.xhr_ ?this.xhr_. [[#variable20d5c3c0]] : [[#variable20d5c320]]; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20d5c440]] | getResponseXml |
1 | 2 | [[#20d5c440]] | getResponseText |
2 | 1 | [[#20d5c3c0]] | responseXML |
2 | 2 | [[#20d5c3c0]] | responseText |
3 | 1 | [[#20d5c320]] | null |
3 | 2 | [[#20d5c320]] | '' |