From cccffd3fa46ff499db4802f2cbc3540845456adf Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Sat, 7 Apr 2018 00:16:33 -0400 Subject: [PATCH] fixed debug option --- src/record.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/record.js b/src/record.js index d90a28a..02ad80e 100644 --- a/src/record.js +++ b/src/record.js @@ -30,7 +30,7 @@ constructor(init, opts) { // define options this.store = (opts || {}).store; - this.debug = (opts || {}).debug; + this.debug = (opts || {}).debug || false; // initialize the collection this.records = Array.isArray(init) ? init : []; @@ -49,7 +49,7 @@ * @private */ _log() { - if(!this.debug) { + if(this.debug) { console.log(...arguments); } }