PageRenderTime 22ms CodeModel.GetById 18ms RepoModel.GetById 0ms 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
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. exports.foo = function(msg){
  2. if (msg) {
  3. return msg;
  4. } else {
  5. return generateFoo();
  6. }
  7. };
  8. function generateFoo() {
  9. return 'foo';
  10. }
  11. function Foo(msg){
  12. this.msg = msg || 'foo';
  13. }