From 94d78b5b80fb1282dcf97b739cd58402dbeeec14 Mon Sep 17 00:00:00 2001 From: Lazarev Alexandr Date: Wed, 14 Dec 2016 10:21:11 +0300 Subject: [PATCH] Fixed a typo (#356) --- debug.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug.js b/debug.js index fc634f7..4ea6d93 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) {