Revert "Apply arguments passed to 'close' functions to 'onClose'. Applies to views and controllers."

This reverts commit 7c32fbf037de2ff0d2792107842f8db7d55dc5b1.