Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lazybensch committed Feb 15, 2017
1 parent c021e61 commit 3b9a183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions addon/components/power-select-multiple/trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ export default Component.extend({
}),

maybePlaceholder: computed('placeholder', 'select.selected.length', function() {
let component = this.get('placeholderComponent');
let hasCustomPlaceholder = component !== 'power-select/placeholder';

if (isIE || hasCustomPlaceholder) {
if (isIE) {
return null;
}
let select = this.get('select');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{{/if}}
</li>
{{else}}
{{#if (and placeholder (not searchEnabled))}}
{{#if (not searchEnabled)}}
{{component placeholderComponent placeholder=placeholder}}
{{/if}}
{{/each}}
Expand Down

0 comments on commit 3b9a183

Please sign in to comment.