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

Prototype structure get/set not accepted

1 Answer 30 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pierre
Top achievements
Rank 1
Pierre asked on 22 Jul 2010, 02:31 PM
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;
    },

1 Answer, 1 is accepted

Sort by
0
Hans Kratz
Telerik team
answered on 27 Jul 2010, 08:29 PM
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
Tags
Code Analysis
Asked by
Pierre
Top achievements
Rank 1
Answers by
Hans Kratz
Telerik team
Share this question
or