Kendo ObservableObject functions

2 posts, 0 answers
  1. Kjell
    Kjell avatar
    274 posts
    Member since:
    Jun 2010

    Posted 29 Aug 2014 Link to this post

    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? 
  2. Petyo
    Petyo avatar
    2437 posts

    Posted 01 Sep 2014 Link to this post

    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? 

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top