Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.984 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 140 | Closure/closure/goog/ui/css3buttonrenderer.js |
2 | 17 | 196 | Closure/closure/goog/ui/imagelessbuttonrenderer.js |
| ||||
// Register a decorator factory function for goog.ui.Css3ButtonRenderer. goog.ui.registry.setDecoratorByClassName( goog.ui.Css3ButtonRenderer.CSS_CLASS, function ( ) { return new goog.ui.Button(null, goog.ui.Css3ButtonRenderer.getInstance( )); } ); // Register a decorator factory function for toggle buttons using the // goog.ui.Css3ButtonRenderer. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-css3-toggle-button'), function ( ) { var button= new goog.ui.Button(null, goog.ui.Css3ButtonRenderer.getInstance( )); button.setSupportedState(goog.ui.Component.State.CHECKED, true); return button; } ); |
| ||||
// Register a decorator factory function for goog.ui.ImagelessButtonRenderer. goog.ui.registry.setDecoratorByClassName( goog.ui.ImagelessButtonRenderer.CSS_CLASS, function ( ) { return new goog.ui.Button(null, goog.ui.ImagelessButtonRenderer.getInstance( )); } ); // Register a decorator factory function for toggle buttons using the // goog.ui.ImagelessButtonRenderer. goog.ui.registry.setDecoratorByClassName( goog.getCssName('goog-imageless-toggle-button'), function ( ) { var button= new goog.ui.Button(null, goog.ui.ImagelessButtonRenderer.getInstance( )); button.setSupportedState(goog.ui.Component.State.CHECKED, true); return button; } ); |
| |||
// Register a decorator factory function for goog.ui.Css3ButtonRenderer. // Register a decorator factory function for goog.ui.ImagelessButtonRenderer. goog.ui.registry.setDecoratorByClassName(goog.ui. [[#variable606aa5a0]].CSS_CLASS, function ( ) { return new goog.ui.Button(null,goog.ui. [[#variable606aa5a0]].getInstance( )); } ); // Register a decorator factory function for toggle buttons using the // goog.ui.Css3ButtonRenderer. // goog.ui.ImagelessButtonRenderer. goog.ui.registry.setDecoratorByClassName(goog.getCssName( [[#variable606aa3a0]]), function ( ) { var button=new goog.ui.Button(null,goog.ui. [[#variable606aa5a0]].getInstance( )); button.setSupportedState(goog.ui.Component.State.CHECKED, true); return button; } ); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#606aa5a0]] | Css3ButtonRenderer |
1 | 2 | [[#606aa5a0]] | ImagelessButtonRenderer |
2 | 1 | [[#606aa3a0]] | 'goog-css3-toggle-button' |
2 | 2 | [[#606aa3a0]] | 'goog-imageless-toggle-button' |