From 6140fb391dc1a76cc526108171dfdef4f44aea99 Mon Sep 17 00:00:00 2001 From: Michelle Bu Date: Sat, 6 Jul 2013 22:33:13 -0700 Subject: [PATCH] Optional options --- lib/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util.js b/lib/util.js index 01b0e89..fbd7ab6 100644 --- a/lib/util.js +++ b/lib/util.js @@ -13,6 +13,7 @@ var util = { }); }, extend: function(dest, source) { + source = source || {} for(var key in source) { if(source.hasOwnProperty(key)) { dest[key] = source[key];