Rainbow-CPaaS / StarterKit-SDKWeb-Angular2

Starter Kit for the ALE Rainbow SDK for Web based on Angular 2+ environment
2 stars 2 forks source link

why Jquery is used inside sdk.ts? #3

Open ahmadkhalaf1 opened 6 years ago

ahmadkhalaf1 commented 6 years ago

Hello ,

as i can see that jquery is used inside sdk.ts file . since we are using angular2 why do we need jquery and using it inside this file ?

oanguenot commented 6 years ago

Hi Ahmad,

After checking our code, there are two things:

Due to a bug in JQuery that has never been fixed (https://bugs.jquery.com/ticket/11047), it is not possible to listen to Jquery events without Jquery. document.addEventListener(...) method is not able to catch Jquery event.

CustomEvent could be an alternative but we need to see how to introduce it without breaking change or with limited breaking change.

Hope this will help to understand why JQuery has to be used.

ahmadkhalaf1 commented 6 years ago

Thank you for the explanation 👍