client/src/components/project/panels/right_panel/distribution_panel/dirVirtualScroll.js
// returns ng-repeat element and its expr
returns ng-repeat element and its expr
returns ng - repeat element and its expr
function findRepeatElement(node) {
            var descendents = node.getElementsByTagName('*'),
                nAttr;
            for(var i = 0, n = descendents.length; i < n; i++) {
                for(var ii = 0, elem = descendents[i], attributes = elem.attributes, nn = attributes.length; ii < nn; ii++) {
                    nAttr = attributes[ii].name.replace(PREFIX_REGEXP, '').toLowerCase();
                    if(/^(ng\Srepeat)$/.test(nAttr) || /^(ng\Srepeat\Sstart)$/.test(nAttr)) {
                        return [elem, attributes[ii]];
                    }
                }
            }
            return null;
        }
function findRepeatElement ( node ) { var descendents = node . getElementsByTagName ( '*' ) , nAttr ; for ( var i = 0 , n = descendents . length ; i < n ; i ++ ) { for ( var ii = 0 , elem = descendents [ i ] , attributes = elem . attributes , nn = attributes . length ; ii < nn ; ii ++ ) { nAttr = attributes [ ii ] . name . replace ( PREFIX_REGEXP , '' ) . toLowerCase ( ) ; if ( / ^(ng\Srepeat)$ / . test ( nAttr ) || / ^(ng\Srepeat\Sstart)$ / . test ( nAttr ) ) { return [ elem , attributes [ ii ] ] ; } } } return null ; }
returns ng-repeat element and its expr
returns ng - repeat element and its expr