不要怂,就是干,撸起袖子干!

Commit 68b9b832 by Alex Young

Adds back arguments to Sequelize constructor for clarity (suggested by janmeier)

1 parent 99f5c147
Showing with 3 additions and 2 deletions
......@@ -47,8 +47,9 @@ module.exports = (function() {
@class Sequelize
@constructor
*/
var Sequelize = function() {
var database, username, password, options = {}, urlParts
var Sequelize = function(database, username, password, options) {
var urlParts
options = options || {}
if (arguments.length === 1) {
urlParts = url.parse(arguments[0])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!