Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.958 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 144 | Closure/closure/goog/ui/colormenubuttonrenderer.js |
2 | 6 | 97 | Closure/closure/goog/ui/toolbarcolormenubuttonrenderer.js |
| ||||
/** * Initializes the button's DOM when it enters the document. Overrides the * superclass implementation by making sure the button's color indicator is * initialized. * @param {goog.ui.ColorMenuButton} button Button whose DOM is to be * initialized as it enters the document. */ goog.ui.ColorMenuButtonRenderer.prototype.initializeDom= function (button){ this.setValue(button.getElement( ),button.getValue( )); goog.dom.classes.add(button.getElement( ), goog.ui.ColorMenuButtonRenderer.CSS_CLASS); goog.ui.ColorMenuButtonRenderer.superClass_.initializeDom.call(this, button); } ; |
| ||||
/** * Initializes the button's DOM when it enters the document. Overrides the * superclass implementation by making sure the button's color indicator is * initialized. * @param {goog.ui.ColorMenuButton} button Button whose DOM is to be * initialized as it enters the document. */ goog.ui.ToolbarColorMenuButtonRenderer.prototype.initializeDom= function ( button) { this.setValue(button.getElement( ),button.getValue( )); goog.dom.classes.add(button.getElement( ),'goog-toolbar-color-menu-button'); goog.ui.ToolbarColorMenuButtonRenderer.superClass_.initializeDom.call(this, button); } ; |
| |||
/** * Initializes the button's DOM when it enters the document. Overrides the * superclass implementation by making sure the button's color indicator is * initialized. * @param {goog.ui.ColorMenuButton} button Button whose DOM is to be * initialized as it enters the document. */ goog.ui. [[#variable62f592c0]].prototype.initializeDom= function (button) { this.setValue(button.getElement( ),button.getValue( )); goog.dom.classes.add(button.getElement( ), [[#variable3f680060]]); goog.ui. [[#variable62f592c0]].superClass_.initializeDom.call(this,button); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#62f592c0]] | ColorMenuButtonRenderer |
1 | 2 | [[#62f592c0]] | ToolbarColorMenuButtonRenderer |
2 | 1 | [[#3f680060]] | goog.ui.ColorMenuButtonRenderer.CSS_CLASS |
2 | 2 | [[#3f680060]] | 'goog-toolbar-color-menu-button' |