Skip to content

Commit

Permalink
Fixed examples that had semicolons within chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Jul 13, 2011
1 parent 0bebba1 commit b1a9a99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
<div class="example">
<div class="example-left">
<p class="title">Server</p>
<pre class="prettyprint">var app = express.createServer();
<pre class="prettyprint">var app = express.createServer()
, io = require('socket.io').listen(app);

app.listen(80);
Expand Down Expand Up @@ -453,7 +453,7 @@
<pre class="prettyprint">var io = require('socket.io').listen(80);

var chat = io
.of('/chat');
.of('/chat')
.on('connection', function (socket) {
socket.emit('a message', {
that: 'only'
Expand All @@ -466,7 +466,7 @@
});

var news = io
.of('/news');
.of('/news')
.on('connection', function (socket) {
socket.emit('item', { news: 'item' });
});</pre>
Expand Down Expand Up @@ -603,4 +603,4 @@
<a href="http://github.com/learnboost/socket.io"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub" /></a>

</body>
</html>
</html>

0 comments on commit b1a9a99

Please sign in to comment.