You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -299,10 +310,32 @@ In this case, the div named `template` will be cloned, attached and used as inne
299
310
300
311
Also please note that `ctx` should not be defined in the reused `cfg`, otherwise it may cause infinite recursive calls, leading to maximal callstack exceeded exception. Following is a correct example:
301
312
302
-
{ctx: mydata} <<< (cfg = {}) <<< {
313
+
cfg = {}
314
+
{ctx: mydata} <<< cfg <<< {
303
315
handler: myselector: view: cfg
304
316
}
305
317
318
+
A workable, complete example with both JS and HTML (written in Pug) is as below:
0 commit comments