CloneSet633


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.968ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16232
Closure/closure/goog/ui/menuitemrenderer.js
26249
Closure/closure/goog/ui/menuitemrenderer.js
Clone Instance
1
Line Count
6
Source Line
232
Source File
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);
               }
                } ;


Clone Instance
2
Line Count
6
Source Line
249
Source File
Closure/closure/goog/ui/menuitemrenderer.js

/**
 * 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);
               }
               } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1f840c40]]
setCheckable 
12[[#1f840c40]]
setSelectable 
21[[#1f841580]]
checkable 
22[[#1f841580]]
selectable 
31[[#1f841540]]
MENU_ITEM_CHECKBOX 
32[[#1f841540]]
MENU_ITEM_RADIO