Why not `var elemId = __this.config.useCannonicalId ? __this.config.getCannonicalIdFromElem(elem) : __this.config. getIdFromElem(elem)`? It makes no sense to use it based on Strings in this case