Skip to content

Commit

Permalink
Fixed #6
Browse files Browse the repository at this point in the history
  • Loading branch information
fxedel committed Jun 25, 2016
1 parent 7b4258c commit 5128b15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toggle-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@
* Compute the transform property depending on the specified animations in `animation`.
*/
_computeTransform: function() {
if (this.animation === undefined || this.animation == null) {
return '';
}

var transform = '';

if (this.animation.indexOf('flip-vertical') > -1) {
Expand All @@ -272,6 +276,7 @@
*/
_checkedChanged: function() {
this.transform(this.checked ? this._computeTransform() : '');
this.active = this.checked;
},

/**
Expand Down

0 comments on commit 5128b15

Please sign in to comment.