Skip to content

Commit

Permalink
Fixed a leftover usage of model.generateId
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed Sep 19, 2011
1 parent 513954a commit 932d561
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/exampleserver
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

connect = require 'connect'
sharejs = require '../src/server'
hat = require('hat').rack(32, 36)

argv = require('optimist').
usage("Usage: $0 [-p portnum]").
Expand Down Expand Up @@ -29,7 +30,7 @@ server = connect(
wiki docName, server.model, res, next

app.get '/pad/?', (req, res, next) ->
docName = server.model.generateId 5
docName = hat()
res.writeHead 303, {location: '/pad/pad.html#' + docName}
res.write ''
res.end()
Expand Down

0 comments on commit 932d561

Please sign in to comment.