Permalink
Browse files

Update README.markdown

  • Loading branch information...
1 parent 7c8fe94 commit 91ab25d2e4bea591220e8e0d7e4ece7c92e388cb Eric Elliott committed Oct 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.markdown
View
@@ -375,7 +375,8 @@ If you want to write general-purpose library modules that you can use with or wi
if (app.register) {
app.register(namespace, api);
} else {
- app.exports = api;
+ namespace = app.exports ? 'exports' : namespace;
+ app[namespace] = api;
}
}(global.applitude || module || this));

0 comments on commit 91ab25d

Please sign in to comment.