Skip to content

Commit

Permalink
examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 8, 2011
1 parent 1dc07ea commit 23cce95
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/app.js
Expand Up @@ -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){
Expand Down

0 comments on commit 23cce95

Please sign in to comment.