Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 3 | 0.968 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 232 | Closure/closure/goog/ui/menuitemrenderer.js |
2 | 6 | 249 | Closure/closure/goog/ui/menuitemrenderer.js |
| ||||
/** * Enables/disables radio button semantics on the menu item. * @param {goog.ui.Control} item Menu item to update. * @param {Element} element Menu item element to update (may be null if the * item hasn't been rendered yet). * @param {boolean} selectable Whether the item should be selectable. */ goog.ui.MenuItemRenderer.prototype.setSelectable= function (item, element, selectable){ if (element) { goog.dom.a11y.setRole(element, selectable ?goog.dom.a11y.Role.MENU_ITEM_RADIO : this.getAriaRole( )); this.setEnableCheckBoxStructure(item, element, selectable); } } ; |
| ||||
/** * Enables/disables checkbox semantics on the menu item. * @param {goog.ui.Control} item Menu item to update. * @param {Element} element Menu item element to update (may be null if the * item hasn't been rendered yet). * @param {boolean} checkable Whether the item should be checkable. */ goog.ui.MenuItemRenderer.prototype.setCheckable= function (item, element, checkable){ if (element) { goog.dom.a11y.setRole(element, checkable ?goog.dom.a11y.Role.MENU_ITEM_CHECKBOX : this.getAriaRole( )); this.setEnableCheckBoxStructure(item, element, checkable); } } ; |
| |||
/** * Enables/disables checkbox semantics on the menu item. * @param {goog.ui.Control} item Menu item to update. * @param {Element} element Menu item element to update (may be null if the * item hasn't been rendered yet). * @param {boolean} checkable Whether the item should be checkable. */ /** * Enables/disables radio button semantics on the menu item. * @param {goog.ui.Control} item Menu item to update. * @param {Element} element Menu item element to update (may be null if the * item hasn't been rendered yet). * @param {boolean} selectable Whether the item should be selectable. */ goog.ui.MenuItemRenderer.prototype. [[#variable1f840c40]]= function (item,element, [[#variable1f841580]]) { if (element) { goog.dom.a11y.setRole(element, [[#variable1f841580]] ?goog.dom.a11y.Role. [[#variable1f841540]] : this.getAriaRole( )); this.setEnableCheckBoxStructure(item,element, [[#variable1f841580]]); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1f840c40]] | setCheckable |
1 | 2 | [[#1f840c40]] | setSelectable |
2 | 1 | [[#1f841580]] | checkable |
2 | 2 | [[#1f841580]] | selectable |
3 | 1 | [[#1f841540]] | MENU_ITEM_CHECKBOX |
3 | 2 | [[#1f841540]] | MENU_ITEM_RADIO |