driftyco/ionic — pull request #565 by ajoslin (2014-03-17 13:23:35+00:00)
Title: $ionicScrollDelegate: work with one scrollView

Right now, if you have more than one scrollView visible at once in your app, ionicScrollDelegate will control *all* of them.

For example, $ionicScrollDelegate.scrollToTop() will make all scrollViews currently in the app scroll to the top.

Proposed fix: make ionicScrollDelegate be a factory that takes a scope, then gets the nearest scrollView parent to that scope.

```js
function MyCtrl($scope, $ionicScrollDelegate) {
var delegate = $ionicScrollDelegate($scope);
delegate.scrollToTop(); //scrolls to top of nearest parent scrollView
}
```

This would be a breaking change.

Thoughts?