mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(delegates): find active instance
This commit is contained in:
4
js/angular/controller/sideMenuController.js
vendored
4
js/angular/controller/sideMenuController.js
vendored
@@ -397,7 +397,9 @@ function($scope, $attrs, $ionicSideMenuDelegate, $ionicPlatform, $ionicBody, $io
|
||||
});
|
||||
|
||||
var deregisterInstance = $ionicSideMenuDelegate._registerInstance(
|
||||
self, $attrs.delegateHandle
|
||||
self, $attrs.delegateHandle, function() {
|
||||
return $ionicHistory.isActiveScope($scope);
|
||||
}
|
||||
);
|
||||
|
||||
$scope.$on('$destroy', function() {
|
||||
|
||||
Reference in New Issue
Block a user