code: function(e) {
              var route, href, switchLang;
              var instance = this;
              var anchorNode = instance.getAnchor(e.target);
              if (anchorNode) {
                  // node is a anchor-node here.
                  // now we need to check if there is a match with routes
                  href = anchorNode.getAttribute('href');
                  if (href) {
                      switchLang = anchorNode.getAttribute('data-setlang');
                      route = instance.getRouteFromAnchor(href, switchLang);
                      if (route.view) {
                          instance.emit('navigate', {
                              clickEvent: e,
                              route: route,
                              href: href
                          });
                      }
                  }
              }
          }
docs: /*