Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 1 | 0.977 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 570 | Closure/closure/goog/ui/autocomplete/autocomplete.js |
2 | 5 | 583 | Closure/closure/goog/ui/autocomplete/autocomplete.js |
| ||||
/** * Attach text areas or input boxes to the autocomplete by DOM reference. After * elements are attached to the autocomplete, when a user types they will see * the autocomplete drop down. * @param {...Element} var_args Variable args: Input or text area elements to * attach the autocomplete too. */ goog.ui.AutoComplete.prototype.attachInputs= function (var_args){ // Delegate to the input handler var inputHandler= /** @type {goog.ui.AutoComplete.InputHandler} */ (this.selectionHandler_); inputHandler.attachInputs.apply(inputHandler, arguments); } ; |
| ||||
/** * Detach text areas or input boxes to the autocomplete by DOM reference. * @param {...Element} var_args Variable args: Input or text area elements to * detach from the autocomplete. */ goog.ui.AutoComplete.prototype.detachInputs= function (var_args){ // Delegate to the input handler var inputHandler= /** @type {goog.ui.AutoComplete.InputHandler} */ (this.selectionHandler_); inputHandler.detachInputs.apply(inputHandler, arguments); } ; |
| |||
/** * Detach text areas or input boxes to the autocomplete by DOM reference. * @param {...Element} var_args Variable args: Input or text area elements to * detach from the autocomplete. */ /** * Attach text areas or input boxes to the autocomplete by DOM reference. After * elements are attached to the autocomplete, when a user types they will see * the autocomplete drop down. * @param {...Element} var_args Variable args: Input or text area elements to * attach the autocomplete too. */ goog.ui.AutoComplete.prototype. [[#variable6306d500]]= function (var_args) { // Delegate to the input handler var inputHandler= /** @type {goog.ui.AutoComplete.InputHandler} */ (this.selectionHandler_); inputHandler. [[#variable6306d500]].apply(inputHandler,arguments); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6306d500]] | detachInputs |
1 | 2 | [[#6306d500]] | attachInputs |