Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 1 | 0.984 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 854 | Closure/closure/goog/ui/dialog.js |
2 | 7 | 863 | Closure/closure/goog/ui/dialog.js |
| ||||
// Listen for keyboard and resize events while the dialog is visible. this.getHandler( ).listen(this.getElement( ),goog.events.EventType.KEYDOWN, this.onKey_, true).listen(this.getElement( ),goog.events.EventType.KEYPRESS, this.onKey_, true).listen(win, goog.events.EventType.RESIZE, this.onResize_, true); |
| ||||
// Stop listening for keyboard and resize events while the dialog is hidden. this.getHandler( ).unlisten(this.getElement( ),goog.events.EventType.KEYDOWN, this.onKey_, true).unlisten(this.getElement( ),goog.events.EventType.KEYPRESS, this.onKey_, true).unlisten(win, goog.events.EventType.RESIZE, this.onResize_, true); |
| |||
// Listen for keyboard and resize events while the dialog is visible. // Stop listening for keyboard and resize events while the dialog is hidden. this.getHandler( ). [[#variable626d5e60]](this.getElement( ),goog.events.EventType.KEYDOWN,this.onKey_, true). [[#variable626d5e60]](this.getElement( ),goog.events.EventType.KEYPRESS,this.onKey_, true). [[#variable626d5e60]](win,goog.events.EventType.RESIZE,this.onResize_, true); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#626d5e60]] | listen |
1 | 2 | [[#626d5e60]] | unlisten |