Skip to content

Commit

Permalink
Adding todos
Browse files Browse the repository at this point in the history
  • Loading branch information
John Nolette committed Aug 31, 2019
1 parent e6a75c1 commit 54af60c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/router.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src/router.ts
Expand Up @@ -3,6 +3,21 @@ import { IRouterLocation } from './interfaces/event';
import { IConfig } from './interfaces/config';
import { Config } from './config';

// TODO: add documentation

// TODO: complete router tools and implement in router
class RouterTools implements IRouterTools {
process(route: string, source: string) {
return {

};
}

match(route: string, source: string) {
return false;
}
}

class Router implements IRouter {
public config: IConfig;
public location: IRouterLocation;
Expand Down Expand Up @@ -30,6 +45,8 @@ class Router implements IRouter {
}

watch () {
// TODO: figure out why watch not called with history.pushState
console.log('watch called?');
if (this.running) {
if (this.client && this.client.onNavigate) {
this.client.onNavigate({
Expand Down

0 comments on commit 54af60c

Please sign in to comment.