Prototype structure get/set not accepted

Thread is closed for posting
2 posts, 0 answers
  1. Pierre
    Pierre avatar
    138 posts
    Member since:
    Feb 2006

    Posted 22 Jul 2010 Link to this post

    Hi Team,

    This prototype  structure to get and set are not accepted generating errors. May be you can fix for next. Regards

    MyClass.prototype = {
        get position(){
            return this._position;
        set position(pos){
            this._position = pos;
  2. Hans Kratz
    Hans Kratz avatar
    102 posts

    Posted 27 Jul 2010 Link to this post

    Hello Pierre,

    thanks for reporting this. JustCode does indeed not have support for this syntax as it is not part of ECMAScript. Nevertheless since the ECMAScript accessor syntax is not supported by any browser except IE8 and Chrome right now and this syntax is we should support it. I have added an item for this to our issue tracker and tentatively scheduled it for the Q3 release. You will be automatically notified once it is fixed.

    Sincerely yours,
    Hans Kratz
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top