CloneSet1526


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2230.964ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1276
Closure/closure/goog/dom/selection.js
22273
Closure/closure/goog/dom/selection.js
Clone Instance
1
Line Count
2
Source Line
76
Source File
Closure/closure/goog/dom/selection.js

/**
 * Return the place where the selection starts inside a textarea or a text
 * input
 * @param {Element} textfield A textarea or text input.
 * @return {number} The position where the selection starts or 0 if it was
 *     unable to find the position or no selection exists. Note that we can't
 *     reliably tell the difference between an element that has no selection and
 *     one where it starts at 0.
 */
goog.dom.selection.getStart=  function (textfield){
  return goog.dom.selection.getEndPoints_(textfield, true)[0];
                                                  } ;


Clone Instance
2
Line Count
2
Source Line
273
Source File
Closure/closure/goog/dom/selection.js

/**
 * Returns the place where the selection ends inside a textarea or a text input
 * @param {Element} textfield A textarea or text input.
 * @return {number} The position where the selection ends or 0 if it was
 *     unable to find the position or no selection exists.
 */
goog.dom.selection.getEnd=  function (textfield){
 return goog.dom.selection.getEndPoints_(textfield, false)[1];
                                                } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Returns the place where the selection ends inside a textarea or a text input
 * @param {Element} textfield A textarea or text input.
 * @return {number} The position where the selection ends or 0 if it was
 *     unable to find the position or no selection exists.
 */
/**
 * Return the place where the selection starts inside a textarea or a text
 * input
 * @param {Element} textfield A textarea or text input.
 * @return {number} The position where the selection starts or 0 if it was
 *     unable to find the position or no selection exists. Note that we can't
 *     reliably tell the difference between an element that has no selection and
 *     one where it starts at 0.
 */
goog.dom.selection. [[#variable4229e7e0]]= function (textfield)
                                           { return goog.dom.selection.getEndPoints_(textfield, [[#variable4229e780]])[ [[#variable4229e720]]];
                                           } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4229e7e0]]
getEnd 
12[[#4229e7e0]]
getStart 
21[[#4229e780]]
false 
22[[#4229e780]]
true 
31[[#4229e720]]
1 
32[[#4229e720]]
0