Source: router.js

var Marionette = require('backbone.marionette');

/**
 * @version 1.0.0
 * @description Handle routes to show the active vs complete todo items.
 * @module router
 * @link {http://marionettejs.com/}
 */
module.exports = Marionette.AppRouter.extend({

    /**
     * @desc extend AppRouter to tell the controller
     * when the router is ok
     * @constructor
     * @param options
     */
    constructor: function(options) {
        Marionette.AppRouter.prototype.constructor.call(this, options);
        this._getController().triggerMethod('start');
    },

    /** routes */
    appRoutes: {
        '*filter': 'filterItems'
    }

});
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.2.2 on Mon May 18th 2015 using the DocStrap template.