src/Template.js
function getTextBindingForToken(Directive, tokenText) {
    tokenText = tokenText.trim();

    let directiveInstances = PRIVATE.get(Directive);

    if (!directiveInstances) {
        directiveInstances = {};
        PRIVATE.set(Directive, directiveInstances);
    }

    if (!directiveInstances[tokenText]) {
        directiveInstances[tokenText] = new Directive(tokenText);
    }

    return directiveInstances[tokenText];
}
function getTextBindingForToken(Directive, tokenText) {
    tokenText = tokenText.trim();

    let directiveInstances = PRIVATE.get(Directive);

    if (!directiveInstances) {
        directiveInstances = {};
        PRIVATE.set(Directive, directiveInstances);
    }

    if (!directiveInstances[tokenText]) {
        directiveInstances[tokenText] = new Directive(tokenText);
    }

    return directiveInstances[tokenText];
}
function getTextBindingForToken ( Directive , tokenText ) { tokenText = tokenText . trim ( ) ; let directiveInstances = PRIVATE . get ( Directive ) ; if ( ! directiveInstances ) { directiveInstances = { } ; PRIVATE . set ( Directive , directiveInstances ) ; } if ( ! directiveInstances [ tokenText ] ) { directiveInstances [ tokenText ] = new Directive ( tokenText ) ; } return directiveInstances [ tokenText ] ; }
Returns a node handlers for the given directive

@param {Directive} Directive
@param {String} tokenText
The token text (no curly braces)

@returns {Directive}
Returns a Directive instance. Call `.getNodeHandler` to get a handler for a given node
Returns a node handlers for the given directive