Skip to content

Commit

Permalink
Fixes constructor of pairs
Browse files Browse the repository at this point in the history
ixti committed Dec 18, 2011
1 parent 70e8e6a commit 14cc3c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/js-yaml/constructor.js
Original file line number Diff line number Diff line change
@@ -206,10 +206,11 @@ BaseConstructor.prototype.constructPairs = function constructPairs(node, deep) {
}

pairs = [];
node.forEachPair(function (key_node, value_node) {

$$.each(node.value, function (pair) {
var key, value;
key = this.constructObject(key_node, deep);
value = this.constructObject(value_node, deep);
key = this.constructObject(pair[0], deep);
value = this.constructObject(pair[1], deep);
pairs.store(key, value);
}, this);

0 comments on commit 14cc3c1

Please sign in to comment.