DefinitelyTyped/pathjs/pathjs-tests.ts
webbiesdk 4cb464134d PathJS: "route" should be called with new. (#8758)
* PathJS: "route" should be called with new.

* PathJS: Calling route with new in test
2016-06-03 00:44:48 +09:00

34 lines
386 B
TypeScript

/// <reference path="pathjs.d.ts" />
Path.map("/test/:id")
.to(()=>{ });
Path.listen();
//History
Path.history.listen(() =>{
});
var initial = Path.history.initial;
//Core
var route = new Path.core.route("/test/:id");
function test1() {
}
route.enter(test1);
function test2() {
}
var funs = new Array<Function>();
funs.push(test1);
funs.push(test2);
route.enter(funs);