Skip to content

Commit 5efa8dd

Browse files
committed
refactor(ionContent): remove unused code
1 parent d2bdf43 commit 5efa8dd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

js/ext/angular/src/directive/ionicContent.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ function($timeout, $controller, $ionicBind) {
7474

7575
return { pre: prelink };
7676
function prelink($scope, $element, $attr, navViewCtrl) {
77-
var clone, sc, scrollView, scrollCtrl;
78-
7977
$scope.$watch(function() {
8078
return ($scope.$hasHeader ? ' has-header' : '') +
8179
($scope.$hasSubheader ? ' has-subheader' : '') +
@@ -114,8 +112,7 @@ function($timeout, $controller, $ionicBind) {
114112
} else if(attr.overflowScroll === "true") {
115113
$element.addClass('overflow-scroll');
116114
} else {
117-
118-
scrollCtrl = $controller('$ionicScroll', {
115+
$controller('$ionicScroll', {
119116
$scope: $scope,
120117
scrollViewOptions: {
121118
el: $element[0],
@@ -136,8 +133,6 @@ function($timeout, $controller, $ionicBind) {
136133
}
137134
}
138135
});
139-
//Publish scrollView to parent so children can access it
140-
scrollView = scrollCtrl.scrollView;
141136
}
142137

143138
}

0 commit comments

Comments
 (0)