Closed wuron closed 5 years ago
I can fix that specific error, but phasing out jQuery altogether is a bit more challenging
I've removed use of jQuery's trim
in 1.2.1, let me know if that helps.
(Although, I presume you'll just get warnings about other uses of jQuery?)
Yeah, now I'm getting warning about contains
in ember-select-box/mixins/select-box/general/click-outside.js:9:1
.
Looks like in some places it can be easily fixed, just like with trim, but in other places where addon uses event listeners, there should be a check for fastboot. Something like in ember-simple-auth
or other addons: https://github.com/simplabs/ember-simple-auth/blob/master/addon/mixins/authenticated-route-mixin.js#L38
Yeh, bare with me - I'll see if I can do it today
I've made headway removing reliance on jQuery, but come across a blocker for now https://github.com/emberjs/ember.js/issues/15578
I'm getting following error in console when running app with fastboot.
Looks like the addon is trying to get
jQuery.trim
but jQuery is unavailable in fastboot mode.