for ( var i = 0; i < elementFns.length; i++) {
        array.push(elementFns[i](self, locals));
      }