Skip to content

Commit fc9bfe8

Browse files
author
Chris K
committed
Fixed a regression with initializing a Dict recursively.
1 parent 200333b commit fc9bfe8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/dict.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ Dict.prototype = new function()
5959
for (var key in obj)
6060
{
6161
var value = obj[key];
62-
if (Object.prototype.toString.call(value) == "[object Object]")
62+
if (Object.prototype.toString.call(value) == "[object Object]" &&
63+
!(value instanceof Dict))
6364
value = new Dict(value);
6465
this.set(key, value);
6566
}

0 commit comments

Comments
 (0)