Commit bf4fe8b5 authored by Sean Hammond's avatar Sean Hammond

Remove some code duplication

parent 57342d65
...@@ -218,9 +218,7 @@ function AnnotationController( ...@@ -218,9 +218,7 @@ function AnnotationController(
// has no text or tags. // has no text or tags.
var isPageNote = (model.target || []).length === 0; var isPageNote = (model.target || []).length === 0;
var isReply = (model.references || []).length !== 0; var isReply = (model.references || []).length !== 0;
var hasText = (model.text || '').length !== 0; return (!isPageNote && !isReply && !vm.hasContent());
var hasTags = (model.tags || []).length !== 0;
return (!isPageNote && !isReply && !hasText && !hasTags);
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment