From: Eduardo San Martin Morote Date: Thu, 2 Jan 2020 19:01:39 +0000 (+0100) Subject: chore: add comments X-Git-Tag: v4.0.0-alpha.0~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b911e5771c1daeb390f6e070a3332101ba40546;p=thirdparty%2Fvuejs%2Frouter.git chore: add comments --- diff --git a/src/index.ts b/src/index.ts index 3af17641..0e712896 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,8 +6,6 @@ import createHashHistory from './history/hash' import View from './components/View' import Link from './components/Link' -// TODO: type things - const plugin: PluginFunction = Vue => { Vue.mixin({ beforeCreate() { diff --git a/src/matcher/path-tokenizer.ts b/src/matcher/path-tokenizer.ts index d68bad38..9c7b4c2c 100644 --- a/src/matcher/path-tokenizer.ts +++ b/src/matcher/path-tokenizer.ts @@ -124,7 +124,7 @@ export function tokenizePath(path: string): Array { consumeBuffer() state = TokenizerState.Param } else if (char === '{') { - // TODO: handle group + // TODO: handle group (or drop it) addCharToBuffer() } else { addCharToBuffer()