I wanted to create a designer with multiple views designer. I created two views. First one works perfect but when i add second with this line of code:
i am getting an error (if i will comment this line it displays correctly but without any functionality):
Uncaught TypeError: Cannot read property 'constructor' of undefined
/Views: 2 .ascx files, 2 js files and 2 cs files
/: cs file that override AddViews.
I removed line with descriptor.AddElementProperty... and it worked. Script was loaded automatically (maybe at a time when first script was loaded)