I am trying to integrate the Javascript library that I create using EmberJS.
An example of almost working integration:
https://github.com/pubnub/open-chat-framework/blob/ember/examples/ember
The library returns a single object with many nested objects. The library is based on network events, so child objects are updated periodically without user input. Updated fire events that you can listen to.
This causes problems for EmberJS, because Ember requires that each property update be done with a help Ember.set()that my library does not use.
A library is a general-purpose JS library, so I refuse to add special Ember code to it. I am wondering how to solve the above error without rewriting my library.
How can I wrap an event-based library the way Ember would like? I previously tried global computing and the Ember service.
In other examples, I saw people exchange each library method with special Ember code. It seems repetitive.
Is it possible to manually inform Ember of changes to the root object and ignore Ember all other changes? Meaning, can I have ember NOT observe changes and manually tell ember when something changes?
The library includes the source of the root event, which is notified of all changes to any object in the tree.
ember-cli: 2.11.1
node: 6.7.0
os: darwin x64