Animation State Question

So I’ve been trying to add a mixing transform, and referred to the docs.
http://www.hijackey.com/UnityAPI/ScriptReference/AnimationState.AddMixingTransform.html
However their examples are far outdated. I’ve got

var leg = GameObject.Find("Armature/Hips/Leg1.L");
GetComponent.<AnimationState>().AddMixingTransform(leg);

That doesn’t work. I can’t put my leg variable into AddMixingTransform and I have no idea what the docs are trying to tell me goes there instead. Can someone please help.

Nevermind. I’ll just continue coding in C# as there doesn’t appear to be an answer to this in js.