Skip to content

Commit 1c163a4

Browse files
musikovthebigredgeek
authored andcommitted
added names and skips arrays erasing on enable call (#409)
1 parent ac5ccae commit 1c163a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/debug.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ function createDebug(namespace) {
138138
function enable(namespaces) {
139139
exports.save(namespaces);
140140

141+
exports.names = [];
142+
exports.skips = [];
143+
141144
var split = (namespaces || '').split(/[\s,]+/);
142145
var len = split.length;
143146

0 commit comments

Comments
 (0)