Plato on Github
Report Home
router.js
Maintainability
82.94
Lines of code
32
Difficulty
7.58
Estimated Errors
0.10
Function weight
By Complexity
By SLOC
'use strict'; /** * @abstract * @class Phalanx.Router * @extends Backbone.Router * @mixins Phalanx.Trait.LifecycleCallbacks */ var Router = defineClass({ /** * @constructor * @param {Object} options */ constructor: function(options) { options || (options = {}); this.onCreate.apply(this, arguments); Backbone.Router.apply(this, arguments); } }); Router.mixin(Trait.LifecycleCallbacks); _.extend(Router.prototype, Backbone.Router.prototype, { /** * destroy */ destroy: function() { this.onDestroy(); } });