Skip to content

Commit

Permalink
Simplified if statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
nursultanturdaliev committed May 23, 2016
1 parent 68ad873 commit a6e0442
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bootstrap-filestyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,15 +333,15 @@
$('.filestyle').each(function() {
var $this = $(this), options = {

'input' : $this.attr('data-input') === 'false' ? false : true,
'icon' : $this.attr('data-icon') === 'false' ? false : true,
'buttonBefore' : $this.attr('data-buttonBefore') === 'true' ? true : false,
'disabled' : $this.attr('data-disabled') === 'true' ? true : false,
'input' : $this.attr('data-input') !== 'false',
'icon' : $this.attr('data-icon') !== 'false',
'buttonBefore' : $this.attr('data-buttonBefore') === 'true',
'disabled' : $this.attr('data-disabled') === 'true',
'size' : $this.attr('data-size'),
'buttonText' : $this.attr('data-buttonText'),
'buttonName' : $this.attr('data-buttonName'),
'iconName' : $this.attr('data-iconName'),
'badge' : $this.attr('data-badge') === 'false' ? false : true,
'badge' : $this.attr('data-badge') !== 'false',
'placeholder': $this.attr('data-placeholder')
};

Expand Down

0 comments on commit a6e0442

Please sign in to comment.