Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 3 | 0.964 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 76 | Closure/closure/goog/dom/selection.js |
2 | 2 | 273 | 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]; } ; |
| ||||
/** * 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]; } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4229e7e0]] | getEnd |
1 | 2 | [[#4229e7e0]] | getStart |
2 | 1 | [[#4229e780]] | false |
2 | 2 | [[#4229e780]] | true |
3 | 1 | [[#4229e720]] | 1 |
3 | 2 | [[#4229e720]] | 0 |