From cbb0120c41a3bc8d8844ee4eb8563edf1c77db69 Mon Sep 17 00:00:00 2001 From: welefen Date: Tue, 3 Jun 2014 19:25:32 +0800 Subject: [PATCH] update --- lib/Lib/Core/Db.js | 4 +--- lib/Lib/Util/Behavior.js | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Lib/Core/Db.js b/lib/Lib/Core/Db.js index a71b5510..7a539bc4 100644 --- a/lib/Lib/Core/Db.js +++ b/lib/Lib/Core/Db.js @@ -309,7 +309,6 @@ var Db = module.exports = Class(function(){ * @return {[type]} [description] */ parseThinkWhere: function(key, val){ - var whereStr = ""; switch(key){ // 字符串模式查询条件 case "_string": @@ -331,8 +330,7 @@ var Db = module.exports = Class(function(){ val = this.parseKey(name) + " = " + this.parseValue(val); arr.push(val); } - whereStr = arr.join(op); - return whereStr; + return arr.join(op); default: return ""; } diff --git a/lib/Lib/Util/Behavior.js b/lib/Lib/Util/Behavior.js index 48dd2c7f..0f6039a8 100644 --- a/lib/Lib/Util/Behavior.js +++ b/lib/Lib/Util/Behavior.js @@ -12,8 +12,6 @@ module.exports = Class(function(){ for(var name in this.options){ if (C(name) !== undefined) { this.options[name] = C(name); - }else{ - C(name, this.options[name]); } } },