From 1c163a48c16fdfcaff734d2233bec6fff3d6f0f0 Mon Sep 17 00:00:00 2001 From: Mykyta Usikov Date: Wed, 4 Jan 2017 21:58:28 +0200 Subject: [PATCH] added names and skips arrays erasing on enable call (#409) --- src/debug.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/debug.js b/src/debug.js index 4d3c7f27..25cb6890 100644 --- a/src/debug.js +++ b/src/debug.js @@ -138,6 +138,9 @@ function createDebug(namespace) { function enable(namespaces) { exports.save(namespaces); + exports.names = []; + exports.skips = []; + var split = (namespaces || '').split(/[\s,]+/); var len = split.length;