Skip to content

Commit

Permalink
added names and skips arrays erasing on enable call
Browse files Browse the repository at this point in the history
  • Loading branch information
musikov committed Jan 3, 2017
1 parent ac5ccae commit a82c04f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/debug.js
Original file line number Diff line number Diff line change
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 a82c04f

Please sign in to comment.