From 418c099371ee0763811e9bc111a4d3d9a93f72b1 Mon Sep 17 00:00:00 2001 From: Dylan Sackmann Date: Mon, 9 Mar 2015 16:35:55 -0700 Subject: [PATCH] Export middleware constructor instead of a preconstructed instance --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 0ebaf48..1afd59c 100644 --- a/index.js +++ b/index.js @@ -55,4 +55,4 @@ JqueryFileUploadMiddleware.prototype.fileManager = function (options) { return require('./lib/filemanager')(this, this.prepareOptions(_.extend(this.options, options))); }; -module.exports = new JqueryFileUploadMiddleware(); \ No newline at end of file +module.exports = JqueryFileUploadMiddleware; \ No newline at end of file