perf(_ElementSelector): Remove recursion in addDirective