From 3c453d2056a067aebb60d13987b4a3a2ea4a9f86 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Fri, 31 Jul 2015 08:18:10 -0700 Subject: Added first test. --- lib/PodcastView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/PodcastView.js b/lib/PodcastView.js index 15970cf..1236abd 100644 --- a/lib/PodcastView.js +++ b/lib/PodcastView.js @@ -15,10 +15,10 @@ var DDB_VIEWS_TABLE = 'podcast-views'; * template. * @constructor */ -modules.exports = function PodcastView(view) { +var PodcastView = module.exports = function PodcastView(view) { for (var property in view) { if (view.hasOwnProperty(property)) { - this[property] = source[property]; + this[property] = view[property]; } } }; -- cgit v1.2.3