I just read that when creating js objects it's better to assign functions via the prototype vs the object literal constructor. I think this is not the case with the kendo ObservableObject but I am curious, why is that?
1 Answer, 1 is accepted
0
Petyo
Telerik team
answered on 01 Sep 2014, 07:47 AM
Hi Kjell,
this is correct, using the prototype object for methods in general uses less memory. I am not sure that I understand your concern about the observable object, though. Kendo UI uses a class-based inheritance, which builds prototype objects internally - check the definition of the ObservableObject for one such declaration. May you please clarify further?
Regards,
Petyo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!