jQuery has a noConflict function which makes it easy to have two versions of it coexisting in a single web page.
I was wondering if it was possible to have multiple versions of Ember.js running (say, 1.12.1 and 2.1.0) within one webpage using some sort of IIFE wrapping mechanism.
As far as I can tell, Ember forces itself into the global window scope by using a non-scoped this
variable. Is there a way to get around this scope reach out?
Ideally, I'm searching for a potential solution that could leave the global scope untouched, essentially "sandboxing" two Ember applications in one webpage.
Aucun commentaire:
Enregistrer un commentaire