Question Benying Zou · Aug 31, 2023

I have created 3 pages, the scripts are there:

ClassExtends%ZEN.Component.page

each class extends the previous class, and in method onloadHandler output something in the console. so i open the page Test3, and get the right result:

test1

test2

test3

but if I remove the method onloadHander from class Test3 then I get the following output:

test1

test2

test2

The code from Test2 will run 2 times. Even worse was: if I define more page class like the rule without rewrite of onloadHandler, e.g.

2
0 379