You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use AlertifyJS with Ember-CLI and couldn't get AlertifyJS to load properly. Ember-CLI currently has problems with unnamed AMD, which is how AlertifyJS is configured.
To figure out a solution to the problem, I dug through d3js code to see how it works (as it works fine with Ember-CLI). This is how d3 loads
Notice the difference on the AMD, d3 checks for define.amd while AlertifyJS does not. If I add that check into AlertifyJS, the third if case fires and I have access to window.alertify within my project. As a side, also doing what d3 does this.alertify=alertify works too.
I personally like the this.alertify=alertify method, but the window.alertify=alertify is workable.
The text was updated successfully, but these errors were encountered:
I'm trying to use AlertifyJS with Ember-CLI and couldn't get AlertifyJS to load properly. Ember-CLI currently has problems with unnamed AMD, which is how AlertifyJS is configured.
To figure out a solution to the problem, I dug through d3js code to see how it works (as it works fine with Ember-CLI). This is how d3 loads
AlertifyJS, on the other hand does:
Notice the difference on the AMD, d3 checks for
define.amd
while AlertifyJS does not. If I add that check into AlertifyJS, the third if case fires and I have access towindow.alertify
within my project. As a side, also doing what d3 doesthis.alertify=alertify
works too.I personally like the
this.alertify=alertify
method, but thewindow.alertify=alertify
is workable.The text was updated successfully, but these errors were encountered: