bower_components/ember/ember-template-compiler.js
function domIndexOf(nodes, domNode) {
      var index = -1;

      for (var i = 0; i < nodes.length; i++) {
        var node = nodes[i];

        if (node.type !== 'TextNode' && node.type !== 'ElementNode') {
          continue;
        } else {
          index++;
        }

        if (node === domNode) {
          return index;
        }
      }

      return -1;
    }
function domIndexOf(nodes, domNode) {
      var index = -1;

      for (var i = 0; i < nodes.length; i++) {
        var node = nodes[i];

        if (node.type !== 'TextNode' && node.type !== 'ElementNode') {
          continue;
        } else {
          index++;
        }

        if (node === domNode) {
          return index;
        }
      }

      return -1;
    }
function domIndexOf ( nodes , domNode ) { var index = - 1 ; for ( var i = 0 ; i < nodes . length ; i ++ ) { var node = nodes [ i ] ; if ( node . type !== 'TextNode' && node . type !== 'ElementNode' ) { continue ; } else { index ++ ; } if ( node === domNode ) { return index ; } } return - 1 ; }
Returns the index of `domNode` in the `nodes` array, skipping over any nodes which do not represent DOM nodes.
Returns the index of domNode in the nodes array skipping over any nodes which do not represent DOM nodes .