Line 4276: if (active) active.$$addStateInfo(ref.state, def.params); Turn 'ref.state' to 'def.state' and the error goes away.