Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.981 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 442 | Closure/closure/goog/net/xhrmanager.js |
2 | 5 | 458 | Closure/closure/goog/net/xhrmanager.js |
| ||||
/** * Remove listeners for XHR events on an XhrIo object. * @param {goog.net.XhrIo} xhrIo The object to stop listenening to events on. * @param {Function} func The callback to remove from event handling. * @param {string|Array.<string>=} opt_types Event types to remove listeners * for. Defaults to XHR_EVENT_TYPES_. * @private */ goog.net.XhrManager.prototype.removeXhrListener_= function (xhrIo, func, opt_types){ var types= opt_types || goog.net.XhrManager.XHR_EVENT_TYPES_; this.eventHandler_.unlisten(xhrIo, types, func); } ; |
| ||||
/** * Adds a listener for XHR events on an XhrIo object. * @param {goog.net.XhrIo} xhrIo The object listen to events on. * @param {Function} func The callback when the event occurs. * @param {string|Array.<string>=} opt_types Event types to attach listeners to. * Defaults to XHR_EVENT_TYPES_. * @private */ goog.net.XhrManager.prototype.addXhrListener_= function (xhrIo, func, opt_types){ var types= opt_types || goog.net.XhrManager.XHR_EVENT_TYPES_; this.eventHandler_.listen(xhrIo, types, func); } ; |
| |||
/** * Adds a listener for XHR events on an XhrIo object. * @param {goog.net.XhrIo} xhrIo The object listen to events on. * @param {Function} func The callback when the event occurs. * @param {string|Array.<string>=} opt_types Event types to attach listeners to. * Defaults to XHR_EVENT_TYPES_. * @private */ /** * Remove listeners for XHR events on an XhrIo object. * @param {goog.net.XhrIo} xhrIo The object to stop listenening to events on. * @param {Function} func The callback to remove from event handling. * @param {string|Array.<string>=} opt_types Event types to remove listeners * for. Defaults to XHR_EVENT_TYPES_. * @private */ goog.net.XhrManager.prototype. [[#variable62bb13c0]]= function (xhrIo,func,opt_types) { var types=opt_types || goog.net.XhrManager.XHR_EVENT_TYPES_; this.eventHandler_. [[#variable62bb1360]](xhrIo,types,func); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62bb13c0]] | addXhrListener_ |
1 | 2 | [[#62bb13c0]] | removeXhrListener_ |
2 | 1 | [[#62bb1360]] | listen |
2 | 2 | [[#62bb1360]] | unlisten |