From 23cce95a600231711bb449d446bccdd4c784af3e Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 8 Apr 2011 09:21:04 -0700 Subject: [PATCH] examples --- examples/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/app.js b/examples/app.js index e417bbf..f2fc541 100644 --- a/examples/app.js +++ b/examples/app.js @@ -50,10 +50,14 @@ app.expose(function someFunction(){ }, 'foot'); // another alternative is passing an anonymous function, -// which executes itself, creating a "wrapper" function +// which executes itself, creating a "wrapper" function. app.expose(function(){ - alert('this will execute right away :D'); + function notify() { + alert('this will execute right away :D'); + } + + notify(); }); app.get('/', function(req, res){