cocos2d/cocos2d-x — pull request #7469 by Mazyod (2014-07-16 22:14:43+00:00)
Title: Make the scrollView delegate methods optional

Context:

When using the `extension::TableView` class and extending the `TableViewDelegate` to respond to touches, you also have to implement `ScrollViewDelegate` methods:

```cpp
/**
* @js NA
* @lua NA
*/
virtual void scrollViewDidScroll(ScrollView* view) = 0;
/**
* @js NA
* @lua NA
*/
virtual void scrollViewDidZoom(ScrollView* view) = 0;
```

This is really annoying, as I am simply not interesting in these methods, I just need to implement the `TableViewDelegate` methods. This also doesn't comply with CocoaTouch, since these methods are optional in CocoaTouch.

This of it this way, there is absolutely no harm if the delegate doesn't implement those methods, hence they should be optional.

Thanks,