Skip to content

Commit

Permalink
fix: more this in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Jul 17, 2019
1 parent 1298ddd commit 457b812
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions addon/components/x-toggle-label/template.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if hasBlock}}
{{yield label}}
{{yield this.label}}
{{else}}
{{label}}
{{this.label}}
{{/if}}
24 changes: 12 additions & 12 deletions addon/components/x-toggle-switch/template.hbs
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<input
class='x-toggle'
type='checkbox'
checked={{toggled}}
disabled={{disabled}}
id={{forId}}
name={{name}}
onchange={{action sendToggle value='target.checked'}}
checked={{this.toggled}}
disabled={{this.disabled}}
id={{this.forId}}
name={{this.name}}
onchange={{action this.sendToggle value='target.checked'}}
>

<label for={{effectiveForId}}>
<label for={{this.effectiveForId}}>
<div
id='x-toggle-visual-{{forId}}'
id='x-toggle-visual-{{this.forId}}'
role='checkbox'
class='x-toggle-btn {{themeClass}} {{size}}{{if disabled ' x-toggle-disabled'}}'
aria-owns={{forId}}
aria-checked={{toggled}}
data-tg-on={{onLabel}}
data-tg-off={{offLabel}}
class='x-toggle-btn {{this.themeClass}} {{this.size}}{{if this.disabled ' x-toggle-disabled'}}'
aria-owns={{this.forId}}
aria-checked={{this.toggled}}
data-tg-on={{this.onLabel}}
data-tg-off={{this.offLabel}}
>
</div>
</label>

0 comments on commit 457b812

Please sign in to comment.