PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/lib/foo.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 16 lines | 13 code | 3 blank | 0 comment | 3 complexity | c025d770a3a8d68fdbfd1becc263479c MD5 | raw file
 1
 2exports.foo = function(msg){
 3    if (msg) {
 4        return msg;
 5    } else {
 6        return generateFoo();
 7    }
 8};
 9
10function generateFoo() {
11    return 'foo';
12}
13
14function Foo(msg){
15    this.msg = msg || 'foo';
16}