CloneSet330


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.990ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1869
Closure/closure/goog/dom/classes.js
2887
Closure/closure/goog/dom/classes.js
Clone Instance
1
Line Count
8
Source Line
69
Source File
Closure/closure/goog/dom/classes.js

/**
 * Adds a class or classes to an element. Does not add multiples of class names.
 * @param {Node} element DOM node to add class to.
 * @param {...string} var_args Class names to add.
 * @return {boolean} Whether class was added (or all classes were added).
 */
goog.dom.classes.add=  function (element, var_args){
  var classes=  goog.dom.classes.get(element);
  var args=  goog.array.slice(arguments, 1);

  var b=  goog.dom.classes.add_(classes, args);
  element.className=  classes.join(' ');

  return b;
                                                   } ;


Clone Instance
2
Line Count
8
Source Line
87
Source File
Closure/closure/goog/dom/classes.js

/**
 * Removes a class or classes from an element.
 * @param {Node} element DOM node to remove class from.
 * @param {...string} var_args Class name(s) to remove.
 * @return {boolean} Whether all classes in {@code var_args} were found and
 *     removed.
 */
goog.dom.classes.remove=  function (element, var_args){
  var classes=  goog.dom.classes.get(element);
  var args=  goog.array.slice(arguments, 1);

  var b=  goog.dom.classes.remove_(classes, args);
  element.className=  classes.join(' ');

  return b;
                                                      } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Removes a class or classes from an element.
 * @param {Node} element DOM node to remove class from.
 * @param {...string} var_args Class name(s) to remove.
 * @return {boolean} Whether all classes in {@code var_args} were found and
 *     removed.
 */
/**
 * Adds a class or classes to an element. Does not add multiples of class names.
 * @param {Node} element DOM node to add class to.
 * @param {...string} var_args Class names to add.
 * @return {boolean} Whether class was added (or all classes were added).
 */
goog.dom.classes. [[#variable61adc4a0]]= function (element,var_args)
                                         { var classes=goog.dom.classes.get(element);
                                           var args=goog.array.slice(arguments,1);
                                           var b=goog.dom.classes. [[#variable61adc3a0]](classes,args);
                                           element.className=classes.join(' ');
                                           return b;
                                         } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#61adc4a0]]
remove 
12[[#61adc4a0]]
add 
21[[#61adc3a0]]
remove_ 
22[[#61adc3a0]]
add_