mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(sideMenu): isDraggableTarget: s/this/self
This commit is contained in:
4
js/angular/controller/sideMenuController.js
vendored
4
js/angular/controller/sideMenuController.js
vendored
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user