| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 1 | 0.988 | Block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 226 | Closure/closure/goog/events/events.js |
| 2 | 8 | 357 | Closure/closure/goog/events/events.js |
| ||||
{
if (src== goog.global
|| !src.customEvent_) {
src.addEventListener(type, proxy, capture);
}
}
|
| ||||
{
// EventTarget calls unlisten so we need to ensure that the source is not
// an event target to prevent re-entry.
// TODO: What is this goog.global for? Why would anyone listen to
// events on the [[Global]] object? Is it supposed to be window? Why would
// we not want to allow removing event listeners on the window?
if (src== goog.global
|| !src.customEvent_) {
src.removeEventListener(type, proxy, capture);
}
}
|
| |||
{
// EventTarget calls unlisten so we need to ensure that the source is not
// an event target to prevent re-entry.
// TODO: What is this goog.global for? Why would anyone listen to
// events on the [[Global]] object? Is it supposed to be window? Why would
// we not want to allow removing event listeners on the window?
if (src==goog.global
|| !src.customEvent_)
{ src. [[#variable209117e0]](type,proxy,capture);
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#209117e0]] | addEventListener |
| 1 | 2 | [[#209117e0]] | removeEventListener |