The code snippets in the examples are in the same file and are both within the onReady function.
Switching to 0.96 libraries and this works OK.
Once again moving to a new version of Sencha Touch breaks something that worked before - with no obvious reason for doing so that I can see. It is very frustrating.