Skip to content
Browse files

now calling it opts.comment

  • Loading branch information...
1 parent 85b53f4 commit 2b5ef2df22a25ba4f35f0f451455ff679b636792 @substack committed Feb 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -95,7 +95,7 @@ function difflet (opts, prev, next) {
set('updated');
}
- if (opts.diff && !Array.isArray(prevNode)) {
+ if (opts.comment && !Array.isArray(prevNode)) {
indent = 0;
}
@@ -122,7 +122,7 @@ function difflet (opts, prev, next) {
}
var prev = prevNode && prevNode[child.key];
- if (indent && opts.diff && child.node !== prev
+ if (indent && opts.comment && child.node !== prev
&& (typeof child.node !== 'object' || typeof prev !== 'object')
) {
set('comment');

0 comments on commit 2b5ef2d

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