Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 4 | 0.953 | SourceElements[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 116 | Closure/closure/goog/ui/attachablemenu.js |
2 | 12 | 137 | Closure/closure/goog/ui/attachablemenu.js |
| ||||
/** * Sets the class name to use for menu items * * @param {string} name The class name to use for items. */ goog.ui.AttachableMenu.prototype.setItemClassName= function (name){ this.itemClassName_= name; } ; /** * Sets the class name to use for selected menu items * TODO - reevaluate if we can simulate pseudo classes in IE * * @return {string} The class name to use for selected items. */ goog.ui.AttachableMenu.prototype.getSelectedItemClassName= function ( ) { return this.selectedItemClassName_; } ; |
| ||||
/** * Sets the class name to use for selected menu items * TODO - reevaluate if we can simulate pseudo classes in IE * * @param {string} name The class name to use for selected items. */ goog.ui.AttachableMenu.prototype.setSelectedItemClassName= function (name){ this.selectedItemClassName_= name; } ; /** * Returns the selected item * * @return {Element} The item selected or null if no item is selected. */ goog.ui.AttachableMenu.prototype.getSelectedItem= function ( ) { return this.selectedElement_; } ; |
| |||
/** * Sets the class name to use for menu items * * @param {string} name The class name to use for items. */ /** * Sets the class name to use for selected menu items * TODO - reevaluate if we can simulate pseudo classes in IE * * @param {string} name The class name to use for selected items. */ goog.ui.AttachableMenu.prototype. [[#variable63456100]]= function (name) { this. [[#variable63471480]]=name; } ; /** * Sets the class name to use for selected menu items * TODO - reevaluate if we can simulate pseudo classes in IE * * @return {string} The class name to use for selected items. */ /** * Returns the selected item * * @return {Element} The item selected or null if no item is selected. */ goog.ui.AttachableMenu.prototype. [[#variable634703e0]]= function ( ) { return this. [[#variable63469f20]]; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#63456100]] | setItemClassName |
1 | 2 | [[#63456100]] | setSelectedItemClassName |
2 | 1 | [[#63471480]] | itemClassName_ |
2 | 2 | [[#63471480]] | selectedItemClassName_ |
3 | 1 | [[#634703e0]] | getSelectedItemClassName |
3 | 2 | [[#634703e0]] | getSelectedItem |
4 | 1 | [[#63469f20]] | selectedItemClassName_ |
4 | 2 | [[#63469f20]] | selectedElement_ |