I'm pretty happy with Appery's javascript editor, but have two questions.
I'm pretty happy with Appery's javascript editor, but have two questions.
Hello -
Sorry, warnings arise when strict is declared inside any function:
prefunction PrintMsg(type) {
'use strict';
if (type == 'error') {
Appery('lbl_msg').css('color', '#f55353');
} else {
Appery('lbl_msg').css('color', '#53f594');
}
}
/pre
Looks like the answer for now is to always use the function form, no matter where it's declared:
pre(function () {
'use strict';
}());
/pre
Hi Beej,
That's not a problem,
you can use
pre
self.Appery('lbl_msg').css('color', '#f55353');
/pre
instead of
pre
Appery('lbl_msg').css('color', '#f55353');
/pre
Regards.
OK, got it, thanks.