Vincent suggested:
Try depending
on jquery-ui maybe?
Right, I'd misunderstood the purpose of require(), which I thought was to
provide compatibility vs prototype when using '$'.
However, this still doesn't fix things completely, but does move them
forwards a bit.
require(['jquery','jquery-ui'], function($) {
$( "#spinner" ).spinner();
});
Actually, more playing around eventually gave me this, which does work:
require(['jquery',"$services.webjars.url('jquery-ui',
'jquery-ui.js')"], function($) {
$( "#spinner" ).spinner();
});
I wouldn't say I'm 100% sure of what I'm doing with require, or if this is the
best way to do it, but at least it works without errors.
Thanks,
Bryn