Skip to content

Commit

Permalink
Added createApp() deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 16, 2010
1 parent bfa5b5d commit 3ba35dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/connect/index.js
Expand Up @@ -324,7 +324,12 @@ var defaultProviders = {
* @api public
*/

var warned;
exports.createApp = function (setup, options) {
if (!warned) {
console.warn('Warning: connect.createApp() will be removed in 1.0');
warned = true;
}
var filters = Object.create(defaultFilters);
var providers = Object.create(defaultProviders);
providers.router = setup;
Expand Down

0 comments on commit 3ba35dc

Please sign in to comment.