Skip to content

Commit

Permalink
jshint '===' to compare with '0' fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Bradley committed Feb 24, 2014
1 parent 805c35c commit 1a0213e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ext/angular/src/directive/ionicSideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie
return $scope.sideMenuContentTranslateX || 0;
},
setTranslateX: ionic.animationFrameThrottle(function(amount) {
if(amount == 0) {
if(amount === 0) {
$element[0].style[ionic.CSS.TRANSFORM] = 'none';
} else {
$element[0].style[ionic.CSS.TRANSFORM] = 'translate3d(' + amount + 'px, 0, 0)';
Expand Down

0 comments on commit 1a0213e

Please sign in to comment.