| 123456789101112131415161718192021222324 |
- /*global app, Router */
- (function (app, Router) {
- 'use strict';
- var router = new Router();
- Object.keys(app.filters).forEach(function (filter) {
- router.on(filter, function () {
- app.filter = filter;
- });
- });
- router.configure({
- notfound: function () {
- window.location.hash = '';
- app.filter = 'all';
- }
- });
- router.init();
-
- })(app, Router);
|