| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 2 | 0.975 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 287 | Closure/closure/goog/ui/popupmenu.js |
| 2 | 3 | 331 | Closure/closure/goog/ui/popupmenu.js |
| ||||
/**
* Attaches an event listener to a target
* @param {Object} target The target to attach an event to.
* @private
*/
goog.ui.PopupMenu.prototype.attachEvent_= function (target){
this.getHandler( ).listen(
target.element_, target.eventType_, this.onTargetClick_);
} ;
|
| ||||
/**
* Detaches an event listener to a target
* @param {Object} target The target to detach events from.
* @private
*/
goog.ui.PopupMenu.prototype.detachEvent_= function (target){
this.getHandler( ).unlisten(
target.element_, target.eventType_, this.onTargetClick_);
} ;
|
| |||
/**
* Detaches an event listener to a target
* @param {Object} target The target to detach events from.
* @private
*/
/**
* Attaches an event listener to a target
* @param {Object} target The target to attach an event to.
* @private
*/
goog.ui.PopupMenu.prototype. [[#variable20f1d100]]= function (target)
{ this.getHandler( ). [[#variable20f1d080]](target.element_,target.eventType_,this.onTargetClick_);
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#20f1d100]] | detachEvent_ |
| 1 | 2 | [[#20f1d100]] | attachEvent_ |
| 2 | 1 | [[#20f1d080]] | unlisten |
| 2 | 2 | [[#20f1d080]] | listen |