Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
73 | 2 | 1 | 0.979 | SourceElements[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 73 | 727 | Closure/closure/goog/net/iframeio.js |
2 | 73 | 226 | Closure/closure/goog/net/mockiframeio.js |
| ||||
/** * Get the uri of the last request. * @return {goog.Uri} Uri of last request. */ goog.net.IframeIo.prototype.getLastUri= function ( ) { return this.lastUri_; } ; /** * Gets the last error code. * @return {goog.net.ErrorCode} Last error code. */ goog.net.IframeIo.prototype.getLastErrorCode= function ( ) { return this.lastErrorCode_; } ; /** * Gets the last error message. * @return {string} Last error message. */ goog.net.IframeIo.prototype.getLastError= function ( ) { return goog.net.ErrorCode.getDebugMessage(this.lastErrorCode_); } ; /** * Gets the last custom error. * @return {Object} Last custom error. */ goog.net.IframeIo.prototype.getLastCustomError= function ( ) { return this.lastCustomError_; } ; /** * Sets the callback function used to check if a loaded IFrame is in an error * state. * @param {Function} fn Callback that expects a document object as it's single * argument. */ goog.net.IframeIo.prototype.setErrorChecker= function (fn){ this.errorChecker_= fn; } ; /** * Gets the callback function used to check if a loaded IFrame is in an error * state. * @return {Function} A callback that expects a document object as it's single * argument. */ goog.net.IframeIo.prototype.getErrorChecker= function ( ) { return this.errorChecker_; } ; /** * Returns the number of milliseconds after which an incomplete request will be * aborted, or 0 if no timeout is set. * @return {number} Timeout interval in milliseconds. */ goog.net.IframeIo.prototype.getTimeoutInterval= function ( ) { return this.timeoutInterval_; } ; /** * Sets the number of milliseconds after which an incomplete request will be * aborted and a {@link goog.net.EventType.TIMEOUT} event raised; 0 means no * timeout is set. * @param {number} ms Timeout interval in milliseconds; 0 means none. */ goog.net.IframeIo.prototype.setTimeoutInterval= function (ms){ // TODO (pupius) - never used - doesn't look like timeouts were implemented this.timeoutInterval_= Math.max(0, ms); } ; |
| ||||
/** * Get the uri of the last request. * @return {goog.Uri} Uri of last request. */ goog.net.MockIFrameIo.prototype.getLastUri= function ( ) { return this.lastUri_; } ; /** * Gets the last error code. * @return {goog.net.ErrorCode} Last error code. */ goog.net.MockIFrameIo.prototype.getLastErrorCode= function ( ) { return this.lastErrorCode_; } ; /** * Gets the last error message. * @return {string} Last error message. */ goog.net.MockIFrameIo.prototype.getLastError= function ( ) { return goog.net.ErrorCode.getDebugMessage(this.lastErrorCode_); } ; /** * Gets the last custom error. * @return {Object} Last custom error. */ goog.net.MockIFrameIo.prototype.getLastCustomError= function ( ) { return this.lastCustomError_; } ; /** * Sets the callback function used to check if a loaded IFrame is in an error * state. * @param {Function} fn Callback that expects a document object as it's single * argument. */ goog.net.MockIFrameIo.prototype.setErrorChecker= function (fn){ this.errorChecker_= fn; } ; /** * Gets the callback function used to check if a loaded IFrame is in an error * state. * @return {Function} A callback that expects a document object as it's single * argument. */ goog.net.MockIFrameIo.prototype.getErrorChecker= function ( ) { return this.errorChecker_; } ; /** * Returns the number of milliseconds after which an incomplete request will be * aborted, or 0 if no timeout is set. * @return {number} Timeout interval in milliseconds. */ goog.net.MockIFrameIo.prototype.getTimeoutInterval= function ( ) { return this.timeoutInterval_; } ; /** * Sets the number of milliseconds after which an incomplete request will be * aborted and a {@link goog.net.EventType.TIMEOUT} event raised; 0 means no * timeout is set. * @param {number} ms Timeout interval in milliseconds; 0 means none. */ goog.net.MockIFrameIo.prototype.setTimeoutInterval= function (ms){ // TODO (pupius) - never used - doesn't look like timeouts were implemented this.timeoutInterval_= Math.max(0, ms); } ; |
| |||
/** * Get the uri of the last request. * @return {goog.Uri} Uri of last request. */ goog.net. [[#variable5f8a67e0]].prototype.getLastUri= function ( ) { return this.lastUri_; } ; /** * Gets the last error code. * @return {goog.net.ErrorCode} Last error code. */ goog.net. [[#variable5f8a67e0]].prototype.getLastErrorCode= function ( ) { return this.lastErrorCode_; } ; /** * Gets the last error message. * @return {string} Last error message. */ goog.net. [[#variable5f8a67e0]].prototype.getLastError= function ( ) { return goog.net.ErrorCode.getDebugMessage(this.lastErrorCode_); } ; /** * Gets the last custom error. * @return {Object} Last custom error. */ goog.net. [[#variable5f8a67e0]].prototype.getLastCustomError= function ( ) { return this.lastCustomError_; } ; /** * Sets the callback function used to check if a loaded IFrame is in an error * state. * @param {Function} fn Callback that expects a document object as it's single * argument. */ goog.net. [[#variable5f8a67e0]].prototype.setErrorChecker= function (fn) { this.errorChecker_=fn; } ; /** * Gets the callback function used to check if a loaded IFrame is in an error * state. * @return {Function} A callback that expects a document object as it's single * argument. */ goog.net. [[#variable5f8a67e0]].prototype.getErrorChecker= function ( ) { return this.errorChecker_; } ; /** * Returns the number of milliseconds after which an incomplete request will be * aborted, or 0 if no timeout is set. * @return {number} Timeout interval in milliseconds. */ goog.net. [[#variable5f8a67e0]].prototype.getTimeoutInterval= function ( ) { return this.timeoutInterval_; } ; /** * Sets the number of milliseconds after which an incomplete request will be * aborted and a {@link goog.net.EventType.TIMEOUT} event raised; 0 means no * timeout is set. * @param {number} ms Timeout interval in milliseconds; 0 means none. */ goog.net. [[#variable5f8a67e0]].prototype.setTimeoutInterval= function (ms) { // TODO (pupius) - never used - doesn't look like timeouts were implemented this.timeoutInterval_=Math.max(0,ms); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5f8a67e0]] | IframeIo |
1 | 2 | [[#5f8a67e0]] | MockIFrameIo |