Skip to content

Commit

Permalink
added names and skips arrays erasing on enable call (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
musikov authored and thebigredgeek committed Jan 4, 2017
1 parent ac5ccae commit 1c163a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/debug.js
Expand Up @@ -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;

Expand Down

0 comments on commit 1c163a4

Please sign in to comment.