Skip to content
This repository
Browse code

now calling it opts.comment

  • Loading branch information...
commit 2b5ef2df22a25ba4f35f0f451455ff679b636792 1 parent 85b53f4
James Halliday authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 index.js
4 index.js
@@ -95,7 +95,7 @@ function difflet (opts, prev, next) {
95 95 set('updated');
96 96 }
97 97
98   - if (opts.diff && !Array.isArray(prevNode)) {
  98 + if (opts.comment && !Array.isArray(prevNode)) {
99 99 indent = 0;
100 100 }
101 101
@@ -122,7 +122,7 @@ function difflet (opts, prev, next) {
122 122 }
123 123
124 124 var prev = prevNode && prevNode[child.key];
125   - if (indent && opts.diff && child.node !== prev
  125 + if (indent && opts.comment && child.node !== prev
126 126 && (typeof child.node !== 'object' || typeof prev !== 'object')
127 127 ) {
128 128 set('comment');

0 comments on commit 2b5ef2d

Please sign in to comment.
Something went wrong with that request. Please try again.