CloneSet154


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
73210.979SourceElements[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
173727
Closure/closure/goog/net/iframeio.js
273226
Closure/closure/goog/net/mockiframeio.js
Clone Instance
1
Line Count
73
Source Line
727
Source File
Closure/closure/goog/net/iframeio.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);
                                                              } ;


Clone Instance
2
Line Count
73
Source Line
226
Source File
Closure/closure/goog/net/mockiframeio.js

/**
 * 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);
                                                                  } ;


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f8a67e0]]
IframeIo 
12[[#5f8a67e0]]
MockIFrameIo