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.956 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 209 | Closure/closure/goog/ui/menu.js |
2 | 4 | 222 | Closure/closure/goog/ui/menu.js |
| ||||
/** * Removes an item from the menu and disposes of it. * @param {goog.ui.MenuItem|goog.ui.MenuSeparator} item The menu item to remove. * @deprecated Use {@link #removeChild} instead. */ goog.ui.Menu.prototype.removeItem= function (item){ var removedChild= this.removeChild(item, true); if (removedChild) { removedChild.dispose( ); } } ; |
| ||||
/** * Removes a menu item at a given index in the menu and disposes of it. * @param {number} n Index of item. * @deprecated Use {@link #removeChildAt} instead. */ goog.ui.Menu.prototype.removeItemAt= function (n){ var removedChild= this.removeChildAt(n, true); if (removedChild) { removedChild.dispose( ); } } ; |
| |||
/** * Removes a menu item at a given index in the menu and disposes of it. * @param {number} n Index of item. * @deprecated Use {@link #removeChildAt} instead. */ /** * Removes an item from the menu and disposes of it. * @param {goog.ui.MenuItem|goog.ui.MenuSeparator} item The menu item to remove. * @deprecated Use {@link #removeChild} instead. */ goog.ui.Menu.prototype. [[#variable1f8782e0]]= function ( [[#variable1f878260]]) { var removedChild=this. [[#variable1f878160]]( [[#variable1f878260]], true); if (removedChild) { removedChild.dispose( ); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1f8782e0]] | removeItemAt |
1 | 2 | [[#1f8782e0]] | removeItem |
2 | 1 | [[#1f878260]] | n |
2 | 2 | [[#1f878260]] | item |
3 | 1 | [[#1f878160]] | removeChildAt |
3 | 2 | [[#1f878160]] | removeChild |