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

Commit 5933a39f by Sascha Depold

removed getter for direct variable assignment

1 parent 41325209
Showing with 2 additions and 7 deletions
...@@ -3,16 +3,11 @@ var Utils = require('./utils') ...@@ -3,16 +3,11 @@ var Utils = require('./utils')
module.exports = (function() { module.exports = (function() {
var QueryInterface = function(sequelize) { var QueryInterface = function(sequelize) {
this.sequelize = sequelize this.sequelize = sequelize
this.QueryGenerator = this.sequelize.connectorManager.getQueryGenerator()
} }
QueryInterface.prototype.__defineGetter__('QueryGenerator', function() {
return this.sequelize.connectorManager.getQueryGenerator()
})
QueryInterface.prototype.createTable = function(tableName, attributes, options) { QueryInterface.prototype.createTable = function(tableName, attributes, options) {
var self = this return query.call(this, this.QueryGenerator.createTableQuery(tableName, attributes, options))
return query .call(this, this.QueryGenerator.createTableQuery(tableName, attributes, options))
} }
QueryInterface.prototype.dropTable = function() { QueryInterface.prototype.dropTable = function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!