Skip to content

Commit

Permalink
refactor(sideMenu): isDraggableTarget: s/this/self
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Jul 8, 2014
1 parent ab500f2 commit 7388418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/angular/controller/sideMenuController.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform) {
//Only restrict edge when sidemenu is closed and it's enabled
var shouldAllowOnlyEdgeDrag = self.edgeThresholdEnabled && !self.isOpen();
var dragIsWithinBounds = !shouldAllowOnlyEdgeDrag ||
startX <= this.edgeThreshold ||
startX >= this.content.offsetWidth - this.edgeThreshold;
startX <= self.edgeThreshold ||
startX >= self.content.offsetWidth - self.edgeThreshold;

return ($scope.dragContent || self.isOpen()) &&
dragIsWithinBounds &&
Expand Down

0 comments on commit 7388418

Please sign in to comment.