This is a migrated thread and some comments may be shown as answers.

Kendo ObservableObject functions

1 Answer 62 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 29 Aug 2014, 03:08 PM
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

Sort by
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!
 
Tags
MVVM
Asked by
Kjell
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or