Page 1 of 1

[Ionic-Angularjs] "the function constructor is a form of eval"

Posted: Sat Apr 02, 2016 9:01 am
by taucher

Hello,

When i add custom js in mapping, jshint says "the function constructor is a form of eval".

Is this a problem? if so how can i avoid it?

Thanks,


[Ionic-Angularjs] "the function constructor is a form of eval"

Posted: Mon Apr 04, 2016 3:50 pm
by Serhii Kulibaba

Hello,

We need a little bit more information on this issue. Please tell us exactly what you have tried and what doesn't work. If you can include the exact steps and/or screen shots, that would help a lot.


[Ionic-Angularjs] "the function constructor is a form of eval"

Posted: Mon Apr 04, 2016 4:04 pm
by taucher

Hello Sergiy,

I have a Rest Get service. When i am mapping the response to my model, i add custom js for converting the response value. It is working without problem but the jshint shows error:

Image

Mapping:
Image

Thanks,


[Ionic-Angularjs] "the function constructor is a form of eval"

Posted: Tue Apr 05, 2016 7:32 pm
by Serhii Kulibaba

Please add closing curly brace there: Image


[Ionic-Angularjs] "the function constructor is a form of eval"

Posted: Wed Apr 06, 2016 7:27 am
by taucher

Hello Sergiy,

Sorry my screenshot is not full width, now this is the full one:

Image

Thanks,


[Ionic-Angularjs] "the function constructor is a form of eval"

Posted: Mon Apr 18, 2016 10:22 am
by taucher

Hello Sergiy,

Do you have any idea why JSHint gives these errors?

Thanks,


[Ionic-Angularjs] "the function constructor is a form of eval"

Posted: Mon Apr 18, 2016 4:32 pm
by Serhii Kulibaba

No, we don't. It is better don't use functions in the strings to get an error in them.
Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).