CloneSet1160


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2320.958ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12172
Closure/closure/goog/ui/colorpicker.js
22432
Closure/closure/goog/ui/palette.js
32329
Closure/closure/goog/ui/select.js
Clone Instance
1
Line Count
2
Source Line
172
Source File
Closure/closure/goog/ui/colorpicker.js

/**
 * @return {number} The index of the color selected.
 */
goog.ui.ColorPicker.prototype.getSelectedIndex=  function ( )
                                                            {
  return this.colorPalette_
         ?                    this.colorPalette_.getSelectedIndex( )
         :                                                            -1;
                                                            } ;


Clone Instance
2
Line Count
2
Source Line
432
Source File
Closure/closure/goog/ui/palette.js

/**
 * Returns the 0-based index of the currently selected palette item, or -1
 * if no item is selected.
 * @return {number} Index of the selected item (-1 if none).
 */
goog.ui.Palette.prototype.getSelectedIndex=  function ( )
                                                        {
  return this.selectionModel_
         ?                      this.selectionModel_.getSelectedIndex( )
         :                                                                -1;
                                                        } ;


Clone Instance
3
Line Count
2
Source Line
329
Source File
Closure/closure/goog/ui/select.js

/**
 * Returns the index of the currently selected option.
 * @return {number} 0-based index of the currently selected option (-1 if none).
 */
goog.ui.Select.prototype.getSelectedIndex=  function ( )
                                                       {
  return this.selectionModel_
         ?                      this.selectionModel_.getSelectedIndex( )
         :                                                                -1;
                                                       } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Returns the 0-based index of the currently selected palette item, or -1
 * if no item is selected.
 * @return {number} Index of the selected item (-1 if none).
 */
/**
 * @return {number} The index of the color selected.
 */
/**
 * Returns the index of the currently selected option.
 * @return {number} 0-based index of the currently selected option (-1 if none).
 */
goog.ui. [[#variable63042dc0]].prototype.getSelectedIndex= function ( )
                                                           { return this. [[#variable63042ca0]]
                                                                    ?this. [[#variable63042ca0]].getSelectedIndex( )
                                                                    : -1;
                                                           } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#63042dc0]]
Palette 
12[[#63042dc0]]
ColorPicker 
13[[#63042dc0]]
Select 
21[[#63042ca0]]
selectionModel_ 
22[[#63042ca0]]
colorPalette_ 
23[[#63042ca0]]
selectionModel_