Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
31 | 3 | 1 | 0.980 | SourceElements[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 47 | Closure/closure/goog/dom/browserrange/geckorange.js |
2 | 30 | 47 | Closure/closure/goog/dom/browserrange/operarange.js |
3 | 31 | 49 | Closure/closure/goog/dom/browserrange/webkitrange.js |
| ||||
/** * The constructor for Gecko specific browser ranges. * @param {Range} range The range object. * @constructor * @extends {goog.dom.browserrange.W3cRange} */ goog.dom.browserrange.GeckoRange= function (range){ goog.dom.browserrange.W3cRange.call(this, range); } ; goog.inherits(goog.dom.browserrange.GeckoRange, goog.dom.browserrange.W3cRange); /** * Creates a range object that selects the given node's text. * @param {Node} node The node to select. * @return {goog.dom.browserrange.GeckoRange} A Gecko range wrapper object. */ goog.dom.browserrange.GeckoRange.createFromNodeContents= function (node){ return new goog.dom.browserrange.GeckoRange( goog.dom.browserrange.W3cRange.getBrowserRangeForNode(node)); } ; /** * Creates a range object that selects between the given nodes. * @param {Node} startNode The node to start with. * @param {number} startOffset The offset within the node to start. * @param {Node} endNode The node to end with. * @param {number} endOffset The offset within the node to end. * @return {goog.dom.browserrange.GeckoRange} A wrapper object. */ goog.dom.browserrange.GeckoRange.createFromNodes= function (startNode, startOffset, endNode, endOffset){ return new goog.dom.browserrange.GeckoRange( goog.dom.browserrange.W3cRange.getBrowserRangeForNodes(startNode, startOffset, endNode, endOffset)); } ; |
| ||||
/** * The constructor for Opera specific browser ranges. * @param {Range} range The range object. * @constructor * @extends {goog.dom.browserrange.W3cRange} */ goog.dom.browserrange.OperaRange= function (range){ goog.dom.browserrange.W3cRange.call(this, range); } ; goog.inherits(goog.dom.browserrange.OperaRange, goog.dom.browserrange.W3cRange); /** * Creates a range object that selects the given node's text. * @param {Node} node The node to select. * @return {goog.dom.browserrange.OperaRange} A Opera range wrapper object. */ goog.dom.browserrange.OperaRange.createFromNodeContents= function (node){ return new goog.dom.browserrange.OperaRange( goog.dom.browserrange.W3cRange.getBrowserRangeForNode(node)); } ; /** * Creates a range object that selects between the given nodes. * @param {Node} startNode The node to start with. * @param {number} startOffset The offset within the node to start. * @param {Node} endNode The node to end with. * @param {number} endOffset The offset within the node to end. * @return {goog.dom.browserrange.OperaRange} A wrapper object. */ goog.dom.browserrange.OperaRange.createFromNodes= function (startNode, startOffset, endNode, endOffset){ return new goog.dom.browserrange.OperaRange( goog.dom.browserrange.W3cRange.getBrowserRangeForNodes(startNode, startOffset, endNode, endOffset)); } ; |
| ||||
/** * The constructor for WebKit specific browser ranges. * @param {Range} range The range object. * @constructor * @extends {goog.dom.browserrange.W3cRange} */ goog.dom.browserrange.WebKitRange= function (range){ goog.dom.browserrange.W3cRange.call(this, range); } ; goog.inherits(goog.dom.browserrange.WebKitRange, goog.dom.browserrange.W3cRange); /** * Creates a range object that selects the given node's text. * @param {Node} node The node to select. * @return {goog.dom.browserrange.WebKitRange} A WebKit range wrapper object. */ goog.dom.browserrange.WebKitRange.createFromNodeContents= function (node){ return new goog.dom.browserrange.WebKitRange( goog.dom.browserrange.W3cRange.getBrowserRangeForNode(node)); } ; /** * Creates a range object that selects between the given nodes. * @param {Node} startNode The node to start with. * @param {number} startOffset The offset within the start node. * @param {Node} endNode The node to end with. * @param {number} endOffset The offset within the end node. * @return {goog.dom.browserrange.WebKitRange} A wrapper object. */ goog.dom.browserrange.WebKitRange.createFromNodes= function (startNode, startOffset, endNode, endOffset){ return new goog.dom.browserrange.WebKitRange( goog.dom.browserrange.W3cRange.getBrowserRangeForNodes(startNode, startOffset, endNode, endOffset)); } ; |
| |||
/** * The constructor for WebKit specific browser ranges. * @param {Range} range The range object. * @constructor * @extends {goog.dom.browserrange.W3cRange} */ /** * The constructor for Opera specific browser ranges. * @param {Range} range The range object. * @constructor * @extends {goog.dom.browserrange.W3cRange} */ /** * The constructor for Gecko specific browser ranges. * @param {Range} range The range object. * @constructor * @extends {goog.dom.browserrange.W3cRange} */ goog.dom.browserrange. [[#variable61499780]]= function (range) { goog.dom.browserrange.W3cRange.call(this,range); } ; goog.inherits(goog.dom.browserrange. [[#variable61499780]],goog.dom.browserrange.W3cRange); /** * Creates a range object that selects the given node's text. * @param {Node} node The node to select. * @return {goog.dom.browserrange.WebKitRange} A WebKit range wrapper object. */ /** * Creates a range object that selects the given node's text. * @param {Node} node The node to select. * @return {goog.dom.browserrange.OperaRange} A Opera range wrapper object. */ /** * Creates a range object that selects the given node's text. * @param {Node} node The node to select. * @return {goog.dom.browserrange.GeckoRange} A Gecko range wrapper object. */ goog.dom.browserrange. [[#variable61499780]].createFromNodeContents= function (node) { return new goog.dom.browserrange. [[#variable61499780]](goog.dom.browserrange.W3cRange.getBrowserRangeForNode(node)); } ; /** * Creates a range object that selects between the given nodes. * @param {Node} startNode The node to start with. * @param {number} startOffset The offset within the start node. * @param {Node} endNode The node to end with. * @param {number} endOffset The offset within the end node. * @return {goog.dom.browserrange.WebKitRange} A wrapper object. */ /** * Creates a range object that selects between the given nodes. * @param {Node} startNode The node to start with. * @param {number} startOffset The offset within the node to start. * @param {Node} endNode The node to end with. * @param {number} endOffset The offset within the node to end. * @return {goog.dom.browserrange.OperaRange} A wrapper object. */ /** * Creates a range object that selects between the given nodes. * @param {Node} startNode The node to start with. * @param {number} startOffset The offset within the node to start. * @param {Node} endNode The node to end with. * @param {number} endOffset The offset within the node to end. * @return {goog.dom.browserrange.GeckoRange} A wrapper object. */ goog.dom.browserrange. [[#variable61499780]].createFromNodes= function (startNode,startOffset,endNode,endOffset) { return new goog.dom.browserrange. [[#variable61499780]](goog.dom.browserrange.W3cRange.getBrowserRangeForNodes(startNode,startOffset,endNode,endOffset)); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#61499780]] | WebKitRange |
1 | 2 | [[#61499780]] | OperaRange |
1 | 3 | [[#61499780]] | GeckoRange |