Anton Shestakov <av6@dwimlabs.net>, Fri, 27 May 2016 18:38:36 +0800
docs: add another reason of existence
The feature set is not serious maybe, but the overall project kinda already is
by now.
static/js/framework/router.js
Permissions: -rw-r--r--
var Router = Backbone.Router.extend({ ':workspace': 'setWorkspace' makeRandomString: function(length) { return _.map(_.range(length), function() { return (Math.random()*16|0).toString(16); var randomString = this.makeRandomString(8); this.navigate(randomString, {trigger: true, replace: true}); setWorkspace: function(workspace) { fruitbar.trigger('workspace', workspace);