| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 2 | 0 | 1.000 | StatementList[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 4 | 1450 | Closure/closure/goog/dom/dom.js |
| 2 | 5 | 136 | Closure/closure/goog/ui/containerrenderer.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;
}
|
| ||||
// 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;
}
|
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||