CloneSet1564


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3210.988Block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13226
Closure/closure/goog/events/events.js
28357
Closure/closure/goog/events/events.js
Clone Instance
1
Line Count
3
Source Line
226
Source File
Closure/closure/goog/events/events.js

                              {
      if (src==  goog.global
          ||                    !src.customEvent_) {
        src.addEventListener(type, proxy, capture);
                                                   }
                              }


Clone Instance
2
Line Count
8
Source Line
357
Source File
Closure/closure/goog/events/events.js

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


Clone AbstractionParameter Count: 1Parameter Bindings

{
  // 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#209117e0]]
addEventListener 
12[[#209117e0]]
removeEventListener