Plato on Github
Report Home
ampersand/template/shared/client/pages/base.js
Maintainability
100.00
Lines of code
21
Difficulty
4.67
Estimated Errors
0.03
Function weight
By Complexity
By SLOC
/*global $*/ // base view for pages var View = require('ampersand-view'); //var _ = require('lodash'); //var key = require('keymaster'); module.exports = View.extend({ // register keyboard handlers registerKeyboardShortcuts: function() { /* var self = this; _.each(this.keyboardShortcuts, function (value, k) { // register key handler scoped to this page key(k, self.cid, _.bind(self[value], self)); }); key.setScope(this.cid); */ }, unregisterKeyboardShortcuts: function() { //key.deleteScope(this.cid); } });