Does anyone know if you make the object global, and destroy it in one layout, will it be destroyed in all the others?
I'm getting this error when trying to destroy the object on an in app purchase:
Unhandled exception at line 16526, column 3 in ms-appx://71c7dd4d-ebd1-4435-a4ed-6c93fb39025c/c2runtime.js
0x800a1391 - JavaScript runtime error: 'MicrosoftNSJS' is undefined