jQuery を使用してオートコンプリート エクステンダーを作成しているときにエラーが発生します。エラーは 2 行目で発生します。
function reduce(elem, size, border, margin) {
$.each(side, function () { // error on this line
size -= parseFloat($.curCSS(elem, "padding" + this, true))
0;
if (border) {
size -= parseFloat($.curCSS(elem, "border" + this + "Width", true))
0;
}
if (margin) {
size -= parseFloat($.curCSS(elem, "margin" + this, true))
0;
}
});
return size;
}