You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sourceIsEvt is not defined - when used with TypeScript and target ES6 #238
i'm trying to use jsonix in an Angular 8 application, wenn setting the TypeScript target to ES6/ES2015 there is an ReferenceError because 'sourceIsEvt' was not declared before it is used.
jsonix.js:34 Uncaught ReferenceError: sourceIsEvt is not defined
at Object.Jsonix.Util.extend (jsonix.js:34)
...
I don't see any further usage of this variable in the code so is it possible to declare it with 'var' or is there any reason why this variable should by global?
And if it should be global then maybe it could be declared like this:
Activity
Knochenmark commentedon Apr 22, 2022
@boeckMt not sure it's actually a global
a simple
varinfront seems to do the trickboeckMt commentedon Apr 25, 2022
@Knochenmark, yes I used the same trick.
But I think this repo is no longer actively developed. Maybe someone of the forkers is willing to fix bugs.
Fixes highsource#238
Fixes highsource#238
Fixes highsource#238
romdhanisam commentedon Sep 5, 2022
Fixed, PR: #266
To test: https://www.npmjs.com/package/@opentempl/jsonix/v/3.0.0-issues-238