Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.986 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 528 | Closure/closure/goog/fx/dom.js |
2 | 7 | 599 | Closure/closure/goog/fx/dom.js |
| ||||
/** * Animation event handler that will set the background-color of an element */ goog.fx.dom.BgColorTransform.prototype.setColor= function ( ) { var coordsAsInts= [ ]; for (var i= 0; i< this.coords.length; i++) { coordsAsInts[i]= Math.round(this.coords[i]); } var color= 'rgb('+ coordsAsInts.join(',')+ ')'; this.element.style.backgroundColor= color; } ; |
| ||||
/** * Animation event handler that will set the color of an element. * @protected * @override */ goog.fx.dom.ColorTransform.prototype.updateStyle= function ( ) { var coordsAsInts= [ ]; for (var i= 0; i< this.coords.length; i++) { coordsAsInts[i]= Math.round(this.coords[i]); } var color= 'rgb('+ coordsAsInts.join(',')+ ')'; this.element.style.color= color; } ; |
| |||
/** * Animation event handler that will set the color of an element. * @protected * @override */ /** * Animation event handler that will set the background-color of an element */ goog.fx.dom. [[#variable568a7c00]].prototype. [[#variable568a79e0]]= function ( ) { var coordsAsInts=[ ]; for (var i=0; i<this.coords.length; i++) { coordsAsInts[i]=Math.round(this.coords[i]); } var color='rgb('+coordsAsInts.join(',')+')'; this.element.style. [[#variable568a7ac0]]=color; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#568a7c00]] | ColorTransform |
1 | 2 | [[#568a7c00]] | BgColorTransform |
2 | 1 | [[#568a79e0]] | updateStyle |
2 | 2 | [[#568a79e0]] | setColor |
3 | 1 | [[#568a7ac0]] | color |
3 | 2 | [[#568a7ac0]] | backgroundColor |