| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 4 | 0.957 | Block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 214 | Closure/closure/goog/ui/prompt.js |
| 2 | 7 | 222 | Closure/closure/goog/ui/prompt.js |
| ||||
{
// If rows == 1 then use an input element.
this.userInputEl_= /** @type {HTMLInputElement} */
(this.getDomHelper( ).createDom('input', attrs));
this.userInputEl_.type= 'text';
if (this.cols_) {
this.userInputEl_.size= this.cols_;
}
}
|
| ||||
{
// If rows > 1 then use a textarea.
this.userInputEl_= /** @type {HTMLInputElement} */
(this.getDomHelper( ).createDom('textarea', attrs));
this.userInputEl_.rows= this.rows_;
if (this.cols_) {
this.userInputEl_.cols= this.cols_;
}
}
|
| |||
{
// If rows > 1 then use a textarea.
// If rows == 1 then use an input element.
this.userInputEl_= /** @type {HTMLInputElement} */
(this.getDomHelper( ).createDom( [[#variable383d5a60]],attrs));
this.userInputEl_. [[#variable383d59e0]]= [[#variable383d5960]];
if (this.cols_)
{ this.userInputEl_. [[#variable383d5860]]=this.cols_;
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#383d5a60]] | 'textarea' |
| 1 | 2 | [[#383d5a60]] | 'input' |
| 2 | 1 | [[#383d59e0]] | rows |
| 2 | 2 | [[#383d59e0]] | type |
| 3 | 1 | [[#383d5960]] | this.rows_ |
| 3 | 2 | [[#383d5960]] | 'text' |
| 4 | 1 | [[#383d5860]] | cols |
| 4 | 2 | [[#383d5860]] | size |