Skip to content

Conversation

TicaTac
Copy link
Contributor

@TicaTac TicaTac commented May 18, 2018

  • added a small fix : when comparing arrays, we want to get the start position to highlight.
    the path points at a 'value' but there isn't a 'key'.
    this wasn't handled previously, causing arrays to not be highlighted for changes.
    since the start position was empty - the codemirror didn't highlight the change at all.

  • also renamed the color parameter to 'color' (was 'class-name')

  • renamed the path received from the diff to 'path' (was 'key')

@TicaTac TicaTac changed the title closes issue #48 - Diff in array not working closes issues #48 #47 #46 - Diff in array not working May 18, 2018
@TicaTac TicaTac changed the title closes issues #48 #47 #46 - Diff in array not working closes issues #48 #47 #46 #41 - Diff in array not working May 18, 2018
Copy link
Collaborator

@justspamjustin justspamjustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove the debugger comment and I'll get this merged. Thank you!

js/main.js Outdated
if (!leftJson || !rightJson) return;
var diffs = jsonpatch.compare(leftJson, rightJson);
window.diff = diffs;
// debugger;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this debugger comment.

@TicaTac
Copy link
Contributor Author

TicaTac commented May 24, 2018

@justspamjustin
Thanks, Done !

@justspamjustin justspamjustin merged commit aa8dbfe into blitlabs:master May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants