fixed debug option

This commit is contained in:
Geoff Doty 2018-04-07 00:16:33 -04:00
parent 0f21c841f2
commit cccffd3fa4
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}