zendframework/zf2 — pull request #2433 by basz (2012-09-27 17:15:02+00:00)
Title: fix for setJsonpCallback not called when recieved JsonModel + test

**resubmitted cleanly without all the git cruft woot!**

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