05-19-2016 05:16 AM
Hello,
I would like to file an issue, but I didn't find a better place that this.
I have a code that is fully written in TypeScript.
TypeScript emits "use strict" into all the generated JavaScript files.
I was then using neXt to draw a topology, but I needed to use the inherited function. This function uses the "caller" attribute of the function prototype to find the base function and call it. However, caller is not allowed when using "use strict"
Is there another way to implement inherited maybe?
Thank you.
Regards,
07-17-2016 08:23 PM
Hi AbdulRahman,
That must be a late response, but have you figured out what was the reason?
Thanks
08-19-2016 06:50 AM
Hello,
Unfortunately no, now, whenever I want to call inherited, I go instead to the parent class, take the code, and copy/paste it instead.
The problem is that the "caller" cannot be used in strict mode, so the implementation of inherited must be changed in order for it to work.
Btw, is the library even still under development? No replies have been received on the forum or the mailing list in months
08-19-2016 05:24 PM
Hi Abdul Rahman,
Thank you for the answer.
Yes, the development is active and the package will be included into the next release of OpenDaylight.
We are sorry for rare responses as we are snowed under with work at this point. I'll take care of answers on this forum shortly.
Thanks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide