Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.957 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 309 | Closure/closure/goog/ui/combobox.js |
2 | 4 | 331 | Closure/closure/goog/ui/combobox.js |
| ||||
/** * Removes an item from the menu and disposes it. * @param {goog.ui.MenuItem} item The menu item to remove. */ goog.ui.ComboBox.prototype.removeItem= function (item){ var child= this.menu_.removeChild(item, true); if (child) { child.dispose( ); } } ; |
| ||||
/** * Removes a menu item at a given index in the menu. * @param {number} n Index of item. */ goog.ui.ComboBox.prototype.removeItemAt= function (n){ var child= this.menu_.removeChildAt(n, true); if (child) { child.dispose( ); } } ; |
| |||
/** * Removes a menu item at a given index in the menu. * @param {number} n Index of item. */ /** * Removes an item from the menu and disposes it. * @param {goog.ui.MenuItem} item The menu item to remove. */ goog.ui.ComboBox.prototype. [[#variable1f1826e0]]= function ( [[#variable1f182680]]) { var child=this.menu_. [[#variable1f1825c0]]( [[#variable1f182680]], true); if (child) { child.dispose( ); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1f1826e0]] | removeItemAt |
1 | 2 | [[#1f1826e0]] | removeItem |
2 | 1 | [[#1f182680]] | n |
2 | 2 | [[#1f182680]] | item |
3 | 1 | [[#1f1825c0]] | removeChildAt |
3 | 2 | [[#1f1825c0]] | removeChild |