Skip to content

Commit 94d78b5

Browse files
diedsmilingthebigredgeek
authored andcommitted
Fixed a typo (#356)
1 parent b82d4e6 commit 94d78b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

debug.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ var prevTime;
4949

5050
function selectColor(namespace) {
5151
var hash = 0, i;
52-
52+
5353
for (i in namespace) {
5454
hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
5555
hash |= 0; // Convert to 32bit integer
5656
}
57-
57+
5858
return exports.colors[Math.abs(hash) % exports.colors.length];
5959
}
6060

@@ -123,7 +123,7 @@ function createDebug(namespace) {
123123
debug.namespace = namespace;
124124
debug.enabled = exports.enabled(namespace);
125125
debug.useColors = exports.useColors();
126-
debug.color = selectColor(namespae);
126+
debug.color = selectColor(namespace);
127127

128128
// env-specific initialization logic for debug instances
129129
if ('function' === typeof exports.init) {

0 commit comments

Comments
 (0)