From c8d74607f51b8c5915435c1db7ce718b4d708eb3 Mon Sep 17 00:00:00 2001 From: lazarev Date: Wed, 14 Dec 2016 09:16:46 +0200 Subject: [PATCH] Fixed a typo --- debug.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug.js b/debug.js index fc634f7e..4ea6d93e 100644 --- a/debug.js +++ b/debug.js @@ -49,12 +49,12 @@ var prevTime; function selectColor(namespace) { var hash = 0, i; - + for (i in namespace) { hash = ((hash << 5) - hash) + namespace.charCodeAt(i); hash |= 0; // Convert to 32bit integer } - + return exports.colors[Math.abs(hash) % exports.colors.length]; } @@ -123,7 +123,7 @@ function createDebug(namespace) { debug.namespace = namespace; debug.enabled = exports.enabled(namespace); debug.useColors = exports.useColors(); - debug.color = selectColor(namespae); + debug.color = selectColor(namespace); // env-specific initialization logic for debug instances if ('function' === typeof exports.init) {