| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 3 | 4 | 0.956 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 79 | Closure/closure/goog/dom/viewportsizemonitor.js |
| 2 | 5 | 445 | Closure/closure/goog/events/keyhandler.js |
| 3 | 5 | 452 | Closure/closure/goog/events/keyhandler.js |
| ||||
// Listen for window resize events.
this.listenerKey_= goog.events.listen(this.window_,
goog.events.EventType.RESIZE, this.handleResize_, false ,this );
|
| ||||
// Most browsers (Safari 2 being the notable exception) doesn't include the
// keyCode in keypress events (IE has the char code in the keyCode field and
// Mozilla only included the keyCode if there's no charCode). Thus we have to
// listen for keydown to capture the keycode.
this.keyDownKey_= goog.events.listen(this.element_,
goog.events.EventType.KEYDOWN,
this.handleKeyDown_,
false ,
this );
|
| ||||
this.keyUpKey_= goog.events.listen(this.element_,
goog.events.EventType.KEYUP,
this.handleKeyup_,
false ,
this );
|
| |||
// Listen for window resize events. // Most browsers (Safari 2 being the notable exception) doesn't include the // keyCode in keypress events (IE has the char code in the keyCode field and // Mozilla only included the keyCode if there's no charCode). Thus we have to // listen for keydown to capture the keycode. this. [[#variable1f5ea940]]=goog.events.listen(this. [[#variable1f5ea8e0]],goog.events.EventType. [[#variable1f5ea880]],this. [[#variable1f5ea800]], false ,this ); |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#1f5ea940]] | listenerKey_ |
| 1 | 2 | [[#1f5ea940]] | keyDownKey_ |
| 1 | 3 | [[#1f5ea940]] | keyUpKey_ |
| 2 | 1 | [[#1f5ea8e0]] | window_ |
| 2 | 2 | [[#1f5ea8e0]] | element_ |
| 2 | 3 | [[#1f5ea8e0]] | element_ |
| 3 | 1 | [[#1f5ea880]] | RESIZE |
| 3 | 2 | [[#1f5ea880]] | KEYDOWN |
| 3 | 3 | [[#1f5ea880]] | KEYUP |
| 4 | 1 | [[#1f5ea800]] | handleResize_ |
| 4 | 2 | [[#1f5ea800]] | handleKeyDown_ |
| 4 | 3 | [[#1f5ea800]] | handleKeyup_ |