Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.972 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 152 | Closure/closure/goog/demos/samplecomponent.js |
2 | 4 | 163 | Closure/closure/goog/demos/samplecomponent.js |
| ||||
/** * Called when component's element is known to be in the document. */ goog.demos.SampleComponent.prototype.enterDocument= function ( ) { goog.demos.SampleComponent.superClass_.enterDocument.call(this ); this.eh_.listen(this.getElement( ),goog.events.EventType.CLICK, this.onDivClicked_); } ; |
| ||||
/** * Called when component's element is known to have been removed from the * document. */ goog.demos.SampleComponent.prototype.exitDocument= function ( ) { goog.demos.SampleComponent.superClass_.exitDocument.call(this ); this.eh_.unlisten(this.getElement( ),goog.events.EventType.CLICK, this.onDivClicked_); } ; |
| |||
/** * Called when component's element is known to have been removed from the * document. */ /** * Called when component's element is known to be in the document. */ goog.demos.SampleComponent.prototype. [[#variable62f26880]]= function ( ) { goog.demos.SampleComponent.superClass_. [[#variable62f26880]].call(this ); this.eh_. [[#variable62f26720]](this.getElement( ),goog.events.EventType.CLICK,this.onDivClicked_); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62f26880]] | exitDocument |
1 | 2 | [[#62f26880]] | enterDocument |
2 | 1 | [[#62f26720]] | unlisten |
2 | 2 | [[#62f26720]] | listen |