CloneSet785


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5201.000StatementList[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
141450
Closure/closure/goog/dom/dom.js
25136
Closure/closure/goog/ui/containerrenderer.js
Clone Instance
1
Line Count
4
Source Line
1450
Source File
Closure/closure/goog/dom/dom.js

  // IE returns 0 for an unset tabIndex, so we must use getAttributeNode(),
  // which returns an object with a 'specified' property if tabIndex is
  // specified.  This works on other browsers, too.
  var attrNode=  element.getAttributeNode('tabindex'); // Must be lowercase!
  if (attrNode
      &&          attrNode.specified) {
    var index=  element.tabIndex;
    return goog.isNumber(index)
           &&                      index>=  0;
                                      }


Clone Instance
2
Line Count
5
Source Line
136
Source File
Closure/closure/goog/ui/containerrenderer.js

    // IE returns a value of 0 for an unset tabIndex.  Therefore, we must use
    // getAttributeNode('tabIndex'), which returns an object with a 'specified'
    // property if tabIndex is specified.  For more info, see
    // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
    var attrNode=  element.getAttributeNode('tabindex');
    if (attrNode
        &&          attrNode.specified) {
      // TabIndex is specified.
      var index=  element.tabIndex;
      return goog.isNumber(index)
             &&                      index>=  0;
                                        }


Clone AbstractionParameter Count: 0Parameter Bindings

// IE returns a value of 0 for an unset tabIndex.  Therefore, we must use
// getAttributeNode('tabIndex'), which returns an object with a 'specified'
// property if tabIndex is specified.  For more info, see
// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
// IE returns 0 for an unset tabIndex, so we must use getAttributeNode(),
// which returns an object with a 'specified' property if tabIndex is
// specified.  This works on other browsers, too.
var attrNode=element.getAttributeNode('tabindex'); // Must be lowercase!
if (attrNode
    && attrNode.specified)
  {
    // TabIndex is specified.
    var index=element.tabIndex;
    return goog.isNumber(index)
           && index>=0;
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None