Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 1 | 0.997 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 794 | Closure/closure/goog/fx/abstractdragdrop.js |
2 | 13 | 976 | Closure/closure/goog/fx/draglistgroup.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; } } ; |
| ||||
/** * 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; } } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#60cdd6e0]] | AbstractDragDrop |
1 | 2 | [[#60cdd6e0]] | DragListGroup |