| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 3 | 0.957 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 115 | Closure/closure/goog/graphics/ext/group.js |
| 2 | 3 | 1080 | Closure/closure/goog/ui/component.js |
| ||||
/**
* Calls the given function on each of this component's children in order. If
* {@code opt_obj} is provided, it will be used as the 'this' object in the
* function when called. The function should take two arguments: the child
* component and its 0-based index. The return value is ignored.
* @param {Function} f The function to call for every child component; should
* take 2 arguments (the child and its index).
* @param {Object=} opt_obj Used as the 'this' object in f when called.
*/
goog.graphics.ext.Group.prototype.forEachChild= function (f, opt_obj){
if (this.children_) {
goog.array.forEach(this.children_, f, opt_obj);
}
} ;
|
| ||||
/**
* Calls the given function on each of this component's children in order. If
* {@code opt_obj} is provided, it will be used as the 'this' object in the
* function when called. The function should take two arguments: the child
* component and its 0-based index. The return value is ignored.
* @param {Function} f The function to call for every child component; should
* take 2 arguments (the child and its index).
* @param {Object=} opt_obj Used as the 'this' object in f when called.
*/
goog.ui.Component.prototype.forEachChild= function (f, opt_obj){
if (this.children_) {
goog.array.forEach(this.children_, f, opt_obj);
}
} ;
|
| |||
[[#variable5816c2c0]]. [[#variable5816c240]]. [[#variable5816c120]].prototype.forEachChild= function (f,opt_obj)
{ if (this.children_)
{ goog.array.forEach(this.children_,f,opt_obj);
}
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5816c2c0]] | /**
* Calls the given function on each of this component's children in order. If
* {@code opt_obj} is provided, it will be used as the 'this' object in the
* function when called. The function should take two arguments: the child
* component and its 0-based index. The return value is ignored.
* @param {Function} f The function to call for every child component; should
* take 2 arguments (the child and its index).
* @param {Object=} opt_obj Used as the 'this' object in f when called.
*/
goog.graphics |
| 1 | 2 | [[#5816c2c0]] | /**
* Calls the given function on each of this component's children in order. If
* {@code opt_obj} is provided, it will be used as the 'this' object in the
* function when called. The function should take two arguments: the child
* component and its 0-based index. The return value is ignored.
* @param {Function} f The function to call for every child component; should
* take 2 arguments (the child and its index).
* @param {Object=} opt_obj Used as the 'this' object in f when called.
*/
goog |
| 2 | 1 | [[#5816c240]] | ext |
| 2 | 2 | [[#5816c240]] | ui |
| 3 | 1 | [[#5816c120]] | Group |
| 3 | 2 | [[#5816c120]] | Component |