Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 2 | 0.982 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 123 | Closure/closure/goog/ui/dimensionpicker.js |
2 | 14 | 141 | Closure/closure/goog/ui/dimensionpicker.js |
| ||||
/** @inheritDoc */ goog.ui.DimensionPicker.prototype.enterDocument= function ( ) { goog.ui.DimensionPicker.superClass_.enterDocument.call(this ); var handler= this.getHandler( ); handler.listen(this.getRenderer( ).getMouseMoveElement(this ), goog.events.EventType.MOUSEMOVE, this.handleMouseMove).listen(this.getDomHelper( ).getWindow( ),goog.events.EventType.RESIZE, this.handleWindowResize); var parent= this.getParent( ); if (parent) { handler.listen(parent, goog.ui.Component.EventType.SHOW, this.handleShow_); } } ; |
| ||||
/** @inheritDoc */ goog.ui.DimensionPicker.prototype.exitDocument= function ( ) { goog.ui.DimensionPicker.superClass_.exitDocument.call(this ); var handler= this.getHandler( ); handler.unlisten(this.getRenderer( ).getMouseMoveElement(this ), goog.events.EventType.MOUSEMOVE, this.handleMouseMove).unlisten(this.getDomHelper( ).getWindow( ),goog.events.EventType.RESIZE, this.handleWindowResize); var parent= this.getParent( ); if (parent) { handler.unlisten(parent, goog.ui.Component.EventType.SHOW, this.handleShow_); } } ; |
| |||
/** @inheritDoc */ goog.ui.DimensionPicker.prototype. [[#variable5d838a80]]= function ( ) { goog.ui.DimensionPicker.superClass_. [[#variable5d838a80]].call(this ); var handler=this.getHandler( ); handler. [[#variable5d8389e0]](this.getRenderer( ).getMouseMoveElement(this ),goog.events.EventType.MOUSEMOVE,this.handleMouseMove). [[#variable5d8389e0]](this.getDomHelper( ).getWindow( ),goog.events.EventType.RESIZE,this.handleWindowResize); var parent=this.getParent( ); if (parent) { handler. [[#variable5d8389e0]](parent,goog.ui.Component.EventType.SHOW,this.handleShow_); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5d838a80]] | exitDocument |
1 | 2 | [[#5d838a80]] | enterDocument |
2 | 1 | [[#5d8389e0]] | unlisten |
2 | 2 | [[#5d8389e0]] | listen |