Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 1 | 0.989 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 101 | Closure/closure/goog/ui/colormenubuttonrenderer.js |
2 | 5 | 81 | Closure/closure/goog/ui/toolbarcolormenubuttonrenderer.js |
| ||||
/** * Takes a color menu button control's root element and a value object * (which is assumed to be a color), and updates the button's DOM to reflect * the new color. Overrides {@link goog.ui.ButtonRenderer#setValue}. * @param {Element} element The button control's root element (if rendered). * @param {*} value New value; assumed to be a color spec string. */ goog.ui.ColorMenuButtonRenderer.prototype.setValue= function (element, value){ if (element) { goog.ui.ColorMenuButtonRenderer.setCaptionValue( this.getContentElement(element), value); } } ; |
| ||||
/** * Takes a color menu button control's root element and a value object * (which is assumed to be a color), and updates the button's DOM to reflect * the new color. Overrides {@link goog.ui.ButtonRenderer#setValue}. * @param {Element} element The button control's root element (if rendered). * @param {*} value New value; assumed to be a color spec string. */ goog.ui.ToolbarColorMenuButtonRenderer.prototype.setValue= function (element, value){ if (element) { goog.ui.ColorMenuButtonRenderer.setCaptionValue( this.getContentElement(element), value); } } ; |
| |||
/** * Takes a color menu button control's root element and a value object * (which is assumed to be a color), and updates the button's DOM to reflect * the new color. Overrides {@link goog.ui.ButtonRenderer#setValue}. * @param {Element} element The button control's root element (if rendered). * @param {*} value New value; assumed to be a color spec string. */ goog.ui. [[#variable5816d320]].prototype.setValue= function (element,value) { if (element) { goog.ui.ColorMenuButtonRenderer.setCaptionValue(this.getContentElement(element),value); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5816d320]] | ColorMenuButtonRenderer |
1 | 2 | [[#5816d320]] | ToolbarColorMenuButtonRenderer |