Anton Shestakov <engored@ya.ru>, Thu, 21 Mar 2013 16:04:47 +0900
Update Underscore (1.4.3), Backbone (1.0.0) and Shard.
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);