refactor(sideMenu): isDraggableTarget: s/this/self

This commit is contained in:
Andrew
2014-07-08 08:35:13 -06:00
parent ab500f2e0c
commit 7388418661

View File

@@ -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 &&