Skip to content

Commit

Permalink
add ie9 support, fix #111
Browse files Browse the repository at this point in the history
  • Loading branch information
pahans committed Aug 5, 2015
1 parent 3732714 commit c3366b0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ FlowRouter.go('/blog/my-post-id');

Then you can see some messages printed in the console.

## Enabling IE9 support
You need to add html5 history polyfill to enable IE9 support.
~~~shell
meteor add tmeasday:html5-history-api
~~~

## Routes Definition

Flow Router routes are very simple and based on the syntax of [path-to-regexp](https://github.com/pillarjs/path-to-regexp) which is used in both [Express](http://expressjs.com/) and `iron:router`.
Expand Down
3 changes: 2 additions & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Package.describe({
});

Npm.depends({
'page':'1.6.3',
'page':'https://github.com/kadirahq/page.js/archive/8d81513251c5a2efccffd2b4fbe39e6b837982ce.tar.gz',
'qs':'3.1.0'
});

Expand All @@ -23,6 +23,7 @@ Package.onTest(function(api) {
api.use('practicalmeteor:sinon');
api.use('meteorhacks:fast-render');
api.use('meteorhacks:inject-data');
api.use('tmeasday:html5-history-api');

api.addFiles('test/common/fast_render_route.js', ['client', 'server']);

Expand Down
2 changes: 1 addition & 1 deletion test/client/route.reactivity.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Tinytest.addAsync('Client - Route - Reactivity - watchPathChange when routeChang

setTimeout(function() {
r.registerRouteChange(context);
setTimeout(checkAfterNormalRouteChange, 10);
setTimeout(checkAfterNormalRouteChange, 50);
}, 10);

function checkAfterNormalRouteChange() {
Expand Down
4 changes: 2 additions & 2 deletions test/client/router.subs_ready.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Tinytest.addAsync('Client - Router - subsReady - with no args - all subscription
test.isTrue(!!FlowRouter.subsReady());
FlowRouter.subscriptions = Function.prototype;
next();
}, 100);
}, 500);
});

Tinytest.addAsync('Client - Router - subsReady - with no args - all subscriptions does not ready', function (test, next) {
Expand Down Expand Up @@ -99,7 +99,7 @@ Tinytest.addAsync('Client - Router - subsReady - with args - all subscriptions r
test.isTrue(!!FlowRouter.subsReady('foo', 'baz'));
FlowRouter.subscriptions = Function.prototype;
next();
}, 100);
}, 500);
});

Tinytest.addAsync('Client - Router - subsReady - with args - all subscriptions does not ready', function (test, next) {
Expand Down

0 comments on commit c3366b0

Please sign in to comment.