Anton Shestakov <engored@ya.ru>, Fri, 08 Nov 2013 14:43:16 +0900
Added tag 0.2.3 for changeset 72fbf41eb75b
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);