Skip to content

Commit

Permalink
separate function from exports so sys.inherits() works
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Sep 15, 2010
1 parent ac85a67 commit f2aecdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ var sys = require('sys');
var ConnectStore = require('connect/middleware/session/store');
var Store = require('supermarket');

module.exports = function Cart(options) {
module.exports = Cart;

function Cart(options) {
var self = this;

options = options || {};
Expand Down

0 comments on commit f2aecdd

Please sign in to comment.