CloneSet149


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13210.997ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113794
Closure/closure/goog/fx/abstractdragdrop.js
213976
Closure/closure/goog/fx/draglistgroup.js
Clone Instance
1
Line Count
13
Source Line
794
Source File
Closure/closure/goog/fx/abstractdragdrop.js

/**
 * Creates copy of node being dragged.
 *
 * @param {Element} sourceEl Element to copy.
 * @return {Element} The clone of {@code sourceEl}.
 * @private
 */
goog.fx.AbstractDragDrop.prototype.cloneNode_=  function (sourceEl){
  var clonedEl=  /** @type {Element} */
                                        (sourceEl.cloneNode( true));
  switch (sourceEl.tagName.toLowerCase( ))
  { case 'tr':
      return goog.dom.createDom(
          'table', null, goog.dom.createDom('tbody', null, clonedEl));
    case 'td':
    case 'th':
      return goog.dom.createDom(
          'table', null, goog.dom.createDom('tbody', null, goog.dom.createDom(
          'tr', null, clonedEl)));
    default:
      return clonedEl; }
                                                                   } ;


Clone Instance
2
Line Count
13
Source Line
976
Source File
Closure/closure/goog/fx/draglistgroup.js

/**
 * Note: Copied from abstractdragdrop.js. TODO: consolidate.
 * Creates copy of node being dragged.
 *
 * @param {Element} sourceEl Element to copy.
 * @return {Element} The clone of {@code sourceEl}.
 * @private
 */
goog.fx.DragListGroup.prototype.cloneNode_=  function (sourceEl){
  var clonedEl=  /** @type {Element} */
                                        (sourceEl.cloneNode( true));
  switch (sourceEl.tagName.toLowerCase( ))
  { case 'tr':
      return goog.dom.createDom(
          'table', null, goog.dom.createDom('tbody', null, clonedEl));
    case 'td':
    case 'th':
      return goog.dom.createDom(
          'table', null, goog.dom.createDom('tbody', null, goog.dom.createDom(
          'tr', null, clonedEl)));
    default:
      return clonedEl; }
                                                                } ;


Clone AbstractionParameter Count: 1Parameter Bindings

/**
 * Creates copy of node being dragged.
 *
 * @param {Element} sourceEl Element to copy.
 * @return {Element} The clone of {@code sourceEl}.
 * @private
 */
/**
 * Note: Copied from abstractdragdrop.js. TODO: consolidate.
 * Creates copy of node being dragged.
 *
 * @param {Element} sourceEl Element to copy.
 * @return {Element} The clone of {@code sourceEl}.
 * @private
 */
goog.fx. [[#variable60cdd6e0]].prototype.cloneNode_= function (sourceEl)
                                                     { var clonedEl= /** @type {Element} */
                                                           (sourceEl.cloneNode( true));
                                                       switch (sourceEl.tagName.toLowerCase( ))
                                                       { case 'tr':
                                                           return goog.dom.createDom('table',null,goog.dom.createDom('tbody',null,clonedEl));
                                                         case 'td':case 'th':
                                                           return goog.dom.createDom('table',null,goog.dom.createDom('tbody',null,goog.dom.createDom('tr',null,clonedEl)));
                                                         default:
                                                           return clonedEl; }
                                                     } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60cdd6e0]]
AbstractDragDrop 
12[[#60cdd6e0]]
DragListGroup