jqueryライブラリにアクセスできない場所とは異なるスコープで実行されている関数と関係があると思います(下の2行目の最後のパラメータとして呼び出されていることが示されています)
var funcExpandHeight = container.animate({
height: '300px'
}, 300, function () {});
foo.animate({
height: 'show'
}, 300, funcExpandHeight);
1行目は機能し、その後クラッシュします'f.easing[i.animatedProperties[this.prop]] is not a function'
以下に示すように行を一緒に変更すると、操作は正常に完了します。
foo.animate({
height: 'show'
}, 300, function () {
container.animate({
height: container[0].scrollHeight + 'px'
}, 300, function () {})
});