Skip to content

Commit c73a791

Browse files
authored
Update observeTarget to retain parameter passing
If observeTarget is called from setTimeout, the original parameters to the call are lost and dotNetObj and gridClass are undefined on subsequent invocations.
1 parent 5ee76d8 commit c73a791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

knowledge-base/grid-autofit-columns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ function observeTarget(dotNetObj, gridClass) {
166166
dotNetInstance = dotNetObj;
167167

168168
if (!result || !window.DotNet) {
169-
window.setTimeout(observeTarget, 500);
169+
window.setTimeout(observeTarget, 500, dotNetObj, gridClass);
170170
return;
171171
}
172172
observer.observe(result, options);

0 commit comments

Comments
 (0)