CloneSet242


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14220.985SourceElements[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114315
Closure/closure/goog/fx/dom.js
214346
Closure/closure/goog/fx/dom.js
Clone Instance
1
Line Count
14
Source Line
315
Source File
Closure/closure/goog/fx/dom.js

/**
 * Creates an animation object that will resize an element between two widths
 *
 * Start and End should be numbers
 *
 * @param {Element} element Dom Node to be used in the animation.
 * @param {number} start Start width.
 * @param {number} end End width.
 * @param {number} time Length of animation in milliseconds.
 * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1.
 * @extends {goog.fx.dom.PredefinedEffect}
 * @constructor
 */
goog.fx.dom.ResizeWidth=  function (element, start, end, time, opt_acc){
  goog.fx.dom.PredefinedEffect.call(this, element, [start],
                                    [end], time, opt_acc);
                                                                       } ;
goog.inherits(goog.fx.dom.ResizeWidth, goog.fx.dom.PredefinedEffect);


/**
 * Animation event handler that will resize an element by setting its width.
 * @protected
 * @override
 */
goog.fx.dom.ResizeWidth.prototype.updateStyle=  function ( )
                                                           {
  this.element.style.width=  Math.round(this.coords[0])+  'px';
                                                           } ;


Clone Instance
2
Line Count
14
Source Line
346
Source File
Closure/closure/goog/fx/dom.js

/**
 * Creates an animation object that will resize an element between two heights
 *
 * Start and End should be numbers
 *
 * @param {Element} element Dom Node to be used in the animation.
 * @param {number} start Start height.
 * @param {number} end End height.
 * @param {number} time Length of animation in milliseconds.
 * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1.
 * @extends {goog.fx.dom.PredefinedEffect}
 * @constructor
 */
goog.fx.dom.ResizeHeight=  function (element, start, end, time, opt_acc){
  goog.fx.dom.PredefinedEffect.call(this, element, [start],
                                    [end], time, opt_acc);
                                                                        } ;
goog.inherits(goog.fx.dom.ResizeHeight, goog.fx.dom.PredefinedEffect);


/**
 * Animation event handler that will resize an element by setting its height.
 * @protected
 * @override
 */
goog.fx.dom.ResizeHeight.prototype.updateStyle=  function ( )
                                                            {
  this.element.style.height=  Math.round(this.coords[0])+  'px';
                                                            } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Creates an animation object that will resize an element between two widths
 *
 * Start and End should be numbers
 *
 * @param {Element} element Dom Node to be used in the animation.
 * @param {number} start Start width.
 * @param {number} end End width.
 * @param {number} time Length of animation in milliseconds.
 * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1.
 * @extends {goog.fx.dom.PredefinedEffect}
 * @constructor
 */
/**
 * Creates an animation object that will resize an element between two heights
 *
 * Start and End should be numbers
 *
 * @param {Element} element Dom Node to be used in the animation.
 * @param {number} start Start height.
 * @param {number} end End height.
 * @param {number} time Length of animation in milliseconds.
 * @param {Function=} opt_acc Acceleration function, returns 0-1 for inputs 0-1.
 * @extends {goog.fx.dom.PredefinedEffect}
 * @constructor
 */
goog.fx.dom. [[#variable5cea1620]]= function (element,start,end,time,opt_acc)
                                    { goog.fx.dom.PredefinedEffect.call(this,element,[start],[end],time,opt_acc);
                                    } ;
goog.inherits(goog.fx.dom. [[#variable5cea1620]],goog.fx.dom.PredefinedEffect);
/**
 * Animation event handler that will resize an element by setting its width.
 * @protected
 * @override
 */
/**
 * Animation event handler that will resize an element by setting its height.
 * @protected
 * @override
 */
goog.fx.dom. [[#variable5cea1620]].prototype.updateStyle= function ( )
                                                          { this.element.style. [[#variable5749c4a0]]=Math.round(this.coords[0])+'px';
                                                          } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5cea1620]]
ResizeWidth 
12[[#5cea1620]]
ResizeHeight 
21[[#5749c4a0]]
width 
22[[#5749c4a0]]
height