Skip to content

Commit

Permalink
base formatter fix for no left value provided
Browse files Browse the repository at this point in the history
  • Loading branch information
beneidel committed Jun 22, 2015
1 parent 42ce1b6 commit 7beae4f
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jsondiffpatch",
"version": "0.1.31",
"version": "0.1.32",
"author": "Benjamin Eidelman <beneidel@gmail.com>",
"description": "Diff & Patch for Javascript objects",
"contributors": [
Expand Down
4 changes: 2 additions & 2 deletions public/build/jsondiffpatch-formatters.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/jsondiffpatch-formatters.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/jsondiffpatch-formatters.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/jsondiffpatch-full.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/build/jsondiffpatch-full.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/build/jsondiffpatch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/build/jsondiffpatch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/build/jsondiffpatch.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/formatters/base.js
Expand Up @@ -135,7 +135,7 @@ BaseFormatter.prototype.forEachDeltaKey = function(delta, left, fn) {
if (isArray(value) && value[2] === 3) {
moveDestinations[value[1].toString()] = {
key: name,
value: left[parseInt(name.substr(1))]
value: left && left[parseInt(name.substr(1))]
};
if (this.includeMoveDestinations !== false) {
if ((typeof left === 'undefined') &&
Expand Down

0 comments on commit 7beae4f

Please sign in to comment.