zendframework/zf2 — pull request #2431 by basz (2012-09-27 10:58:08+00:00)
Title: Hotfix/issue jsonstrategy omitted callback

When JsonStrategy::selectRenderer is called with an instanceof JsonModel in the event, the renderer would not be configured.

This is only an issue with accept header 'application/javascript' AND $request->getQuery()->get('callback') is available.

Reason is that it would return a renderer early based on the instance type at https://github.com/zendframework/zf2/blob/master/library/Zend/View/Strategy/JsonStrategy.php#L87