CloneSet751


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2340.951ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12257
Closure/third_party/closure/goog/mochikit/async/deferred.js
22268
Closure/third_party/closure/goog/mochikit/async/deferred.js
32308
Closure/third_party/closure/goog/mochikit/async/deferred.js
Clone Instance
1
Line Count
2
Source Line
257
Source File
Closure/third_party/closure/goog/mochikit/async/deferred.js

/**
 * Register a callback function, to be called when a successful result
 * is available.
 * @param {!Function} cb The function to be called on a successful result.
 * @param {Object=} opt_scope An optional scope to call the callback in.
 * @return {!goog.async.Deferred} The deferred object itself.
 */
goog.async.Deferred.prototype.addCallback=  function (cb, opt_scope){
  return this.addCallbacks(cb, null, opt_scope);
                                                                    } ;


Clone Instance
2
Line Count
2
Source Line
268
Source File
Closure/third_party/closure/goog/mochikit/async/deferred.js

/**
 * Register a callback function, to be called if this operation fails.
 * @param {!Function} eb The function to be called on an unsuccessful result.
 * @param {Object=} opt_scope An optional scope to call the errback in.
 * @return {!goog.async.Deferred} The deferred object itself.
 */
goog.async.Deferred.prototype.addErrback=  function (eb, opt_scope){
  return this.addCallbacks(null, eb, opt_scope);
                                                                   } ;


Clone Instance
3
Line Count
2
Source Line
308
Source File
Closure/third_party/closure/goog/mochikit/async/deferred.js

/**
 * Registers a function as both callback and errback.
 * @param {!Function} f The function to be called on any result.
 * @param {Object=} opt_scope An optional scope to call the callbacks in.
 * @return {!goog.async.Deferred} The deferred object itself.
 */
goog.async.Deferred.prototype.addBoth=  function (f, opt_scope){
  return this.addCallbacks(f, f, opt_scope);
                                                               } ;


Clone AbstractionParameter Count: 4Parameter Bindings

/**
 * Registers a function as both callback and errback.
 * @param {!Function} f The function to be called on any result.
 * @param {Object=} opt_scope An optional scope to call the callbacks in.
 * @return {!goog.async.Deferred} The deferred object itself.
 */
/**
 * Register a callback function, to be called if this operation fails.
 * @param {!Function} eb The function to be called on an unsuccessful result.
 * @param {Object=} opt_scope An optional scope to call the errback in.
 * @return {!goog.async.Deferred} The deferred object itself.
 */
/**
 * Register a callback function, to be called when a successful result
 * is available.
 * @param {!Function} cb The function to be called on a successful result.
 * @param {Object=} opt_scope An optional scope to call the callback in.
 * @return {!goog.async.Deferred} The deferred object itself.
 */
goog.async.Deferred.prototype. [[#variable3edb69e0]]= function ( [[#variable3edb6860]],opt_scope)
                                                      { return this.addCallbacks( [[#variable3edb6920]], [[#variable3edb6980]],opt_scope);
                                                      } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3edb69e0]]
addBoth 
12[[#3edb69e0]]
addErrback 
13[[#3edb69e0]]
addCallback 
21[[#3edb6860]]
f 
22[[#3edb6860]]
eb 
23[[#3edb6860]]
cb 
31[[#3edb6920]]
f 
32[[#3edb6920]]
null 
33[[#3edb6920]]
cb 
41[[#3edb6980]]
f 
42[[#3edb6980]]
eb 
43[[#3edb6980]]
null