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

Commit d1797788 by Elliot Foster

Move variable declaration to top of scope

1 parent 6f5a408a
Showing with 5 additions and 2 deletions
...@@ -145,10 +145,13 @@ module.exports = (function() { ...@@ -145,10 +145,13 @@ module.exports = (function() {
}, },
arrayValue: function(value, key, _key, factory){ arrayValue: function(value, key, _key, factory){
var col = null
, coltype = null
, _realKey = key.split('.').pop()
if (value.length === 0) { value = [null] } if (value.length === 0) { value = [null] }
var col = null, coltype = null
// Special conditions for searching within an array column type // Special conditions for searching within an array column type
var _realKey = key.split('.').pop()
if (!!factory && !!factory.rawAttributes[_realKey]) { if (!!factory && !!factory.rawAttributes[_realKey]) {
col = factory.rawAttributes[_realKey] col = factory.rawAttributes[_realKey]
coltype = col.type coltype = col.type
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!