Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 3 | 2 | 0.976 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 166 | Closure/closure/goog/module/moduleinfo.js |
2 | 3 | 181 | Closure/closure/goog/module/moduleinfo.js |
3 | 3 | 196 | Closure/closure/goog/module/moduleinfo.js |
| ||||
/** * Registers a function that should be called after the module is loaded. These * early callbacks are called after {@link Module#initialize} is called but * before the other callbacks are called. * @param {Function} fn A callback function that takes a single argument which * is the module context. * @param {Object=} opt_handler Optional handler under whose scope to execute * the callback. * @return {goog.module.ModuleLoadCallback} Reference to the callback * object. */ goog.module.ModuleInfo.prototype.registerEarlyCallback= function ( fn, opt_handler) { return this.registerCallback_(this.earlyOnloadCallbacks_, fn, opt_handler); } ; |
| ||||
/** * Registers a function that should be called after the module is loaded. * @param {Function} fn A callback function that takes a single argument which * is the module context. * @param {Object=} opt_handler Optional handler under whose scope to execute * the callback. * @return {goog.module.ModuleLoadCallback} Reference to the callback * object. */ goog.module.ModuleInfo.prototype.registerCallback= function ( fn, opt_handler) { return this.registerCallback_(this.onloadCallbacks_, fn, opt_handler); } ; |
| ||||
/** * Registers a function that should be called if the module load fails. * @param {Function} fn A callback function that takes a single argument which * is the failure type. * @param {Object=} opt_handler Optional handler under whose scope to execute * the callback. * @return {goog.module.ModuleLoadCallback} Reference to the callback * object. */ goog.module.ModuleInfo.prototype.registerErrback= function ( fn, opt_handler) { return this.registerCallback_(this.onErrorCallbacks_, fn, opt_handler); } ; |
| |||
/** * Registers a function that should be called if the module load fails. * @param {Function} fn A callback function that takes a single argument which * is the failure type. * @param {Object=} opt_handler Optional handler under whose scope to execute * the callback. * @return {goog.module.ModuleLoadCallback} Reference to the callback * object. */ /** * Registers a function that should be called after the module is loaded. * @param {Function} fn A callback function that takes a single argument which * is the module context. * @param {Object=} opt_handler Optional handler under whose scope to execute * the callback. * @return {goog.module.ModuleLoadCallback} Reference to the callback * object. */ /** * Registers a function that should be called after the module is loaded. These * early callbacks are called after {@link Module#initialize} is called but * before the other callbacks are called. * @param {Function} fn A callback function that takes a single argument which * is the module context. * @param {Object=} opt_handler Optional handler under whose scope to execute * the callback. * @return {goog.module.ModuleLoadCallback} Reference to the callback * object. */ goog.module.ModuleInfo.prototype. [[#variable63039e60]]= function (fn,opt_handler) { return this.registerCallback_(this. [[#variable63039da0]],fn,opt_handler); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#63039e60]] | registerErrback |
1 | 2 | [[#63039e60]] | registerCallback |
1 | 3 | [[#63039e60]] | registerEarlyCallback |
2 | 1 | [[#63039da0]] | onErrorCallbacks_ |
2 | 2 | [[#63039da0]] | onloadCallbacks_ |
2 | 3 | [[#63039da0]] | earlyOnloadCallbacks_ |