I think you probably modeled this `$.extend` on a broken one I had somewhere, because I remember fixing it recently.

You want to do `$.extend(spec.controlElement`, not `$.extend(spec`.