Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.959 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 289 | Closure/closure/goog/ui/container.js |
2 | 7 | 928 | Closure/closure/goog/ui/container.js |
| ||||
/** * Registers the given renderer with the container. Changing renderers after * the container has already been rendered or decorated is an error. * @param {goog.ui.ContainerRenderer} renderer Renderer used by the container. */ goog.ui.Container.prototype.setRenderer= function (renderer){ if (this.getElement( )){ // Too late. throw Error(goog.ui.Component.Error.ALREADY_RENDERED); } this.renderer_= renderer; } ; |
| ||||
/** * Sets the container's orientation. * @param {goog.ui.Container.Orientation} orientation Container orientation. */ // TODO: Do we need to support containers with dynamic orientation? goog.ui.Container.prototype.setOrientation= function (orientation){ if (this.getElement( )){ // Too late. throw Error(goog.ui.Component.Error.ALREADY_RENDERED); } this.orientation_= orientation; } ; |
| |||
/** * Sets the container's orientation. * @param {goog.ui.Container.Orientation} orientation Container orientation. */ // TODO: Do we need to support containers with dynamic orientation? /** * Registers the given renderer with the container. Changing renderers after * the container has already been rendered or decorated is an error. * @param {goog.ui.ContainerRenderer} renderer Renderer used by the container. */ goog.ui.Container.prototype. [[#variable58166b40]]= function ( [[#variable58166ac0]]) { if (this.getElement( )) { // Too late. throw Error(goog.ui.Component.Error.ALREADY_RENDERED); } this. [[#variable58166a60]]= [[#variable58166ac0]]; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58166b40]] | setOrientation |
1 | 2 | [[#58166b40]] | setRenderer |
2 | 1 | [[#58166ac0]] | orientation |
2 | 2 | [[#58166ac0]] | renderer |
3 | 1 | [[#58166a60]] | orientation_ |
3 | 2 | [[#58166a60]] | renderer_ |