zendframework/zf2 — pull request #2643 by basz (2012-10-02 09:29:44+00:00)
Title: fix for setJsonpCallback not called when recieved JsonModel + test

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