| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 1 | 0.986 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 185 | Closure/closure/goog/ui/buttonrenderer.js |
| 2 | 3 | 160 | Closure/closure/goog/ui/tabrenderer.js |
| ||||
/**
* Takes a button's root element and a tooltip string, and updates the element
* with the new tooltip.
* @param {Element} element The button's root element.
* @param {string} tooltip New tooltip text.
* @protected
*/
goog.ui.ButtonRenderer.prototype.setTooltip= function (element, tooltip){
if (element) {
element.title= tooltip
|| '';
}
} ;
|
| ||||
/**
* Takes a tab's root element and a tooltip string, and updates the element
* with the new tooltip. If the new tooltip is null or undefined, sets the
* element's title to the empty string.
* @param {Element} element The tab's root element.
* @param {string|null|undefined} tooltip New tooltip text (if any).
*/
goog.ui.TabRenderer.prototype.setTooltip= function (element, tooltip){
if (element) {
element.title= tooltip
|| '';
}
} ;
|
| |||
/**
* Takes a button's root element and a tooltip string, and updates the element
* with the new tooltip.
* @param {Element} element The button's root element.
* @param {string} tooltip New tooltip text.
* @protected
*/
/**
* Takes a tab's root element and a tooltip string, and updates the element
* with the new tooltip. If the new tooltip is null or undefined, sets the
* element's title to the empty string.
* @param {Element} element The tab's root element.
* @param {string|null|undefined} tooltip New tooltip text (if any).
*/
goog.ui. [[#variable468388c0]].prototype.setTooltip= function (element,tooltip)
{ if (element)
{ element.title=tooltip
|| '';
}
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#468388c0]] | ButtonRenderer |
| 1 | 2 | [[#468388c0]] | TabRenderer |