Skip to content

Commit

Permalink
A little more dry.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Sep 21, 2016
1 parent 4aa8da2 commit 6fd0e1f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/annotations/annotations.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,8 @@
content.setAttribute(attr.name, attr.value);
}
var name = slot.getAttribute('name');
if (name) {
content.setAttribute('select', '[slot=\'' + name + '\']');
} else {
content.setAttribute('select', ':not([slot])');
}
var select = name ? '[slot=\'' + name + '\']' : ':not([slot])';
content.setAttribute('select', select);
slot.parentNode.replaceChild(content, slot);
return content;
},
Expand Down

0 comments on commit 6fd0e1f

Please sign in to comment.