From f71dc8fe39ea72e63082b8b51ade12d2aac4bf64 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Wed, 28 Aug 2013 21:53:55 -0700 Subject: [PATCH] Set default value --- lib/scope.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scope.js b/lib/scope.js index a8e89954..ddefdedd 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -132,6 +132,7 @@ function defineScope(cls, targetClass, name, params, methods) { } function mergeParams(base, update) { + base = base || {}; if (update.where) { base.where = merge(base.where, update.where); }