Closed jimmay5469 closed 7 years ago
@jimmay5469 Yea, I think you are on the right track. If you change it from has
to hasGravatar
I think that should do the trick.
Ok, I just cloned, npm linked, and commented the referenced line and the has: false
definition and am no longer getting the console errors. So the problem is indeed with this addon.
I will try to see if I can rename the property internally but continue yielding it as has
so that it doesn't break the current API.
Alright, looks like this fixed it and I was able to keep the existing has
yield in order to keep the same API. See the #52 PR.
When I hover my mouse over a gravatar and move it around it causes console errors to repeatedly get thrown.
Debugging into this exception I see the following:
As you can see here the
has
function has been overwritten with the valuetrue
. I believe it is getting overwritten in thehas-gravatar
component https://github.com/johnotander/ember-cli-gravatar/blob/605f5d61298882a513911dc01a85d925d4acdb89/addon/components/has-gravatar.js#L21.I plan to rename the
has
property to something different and see if it fixes the issue I'm seeing, but I haven't completely ruled out the possibility that it's not some other addon or something, just seems to all make sense that it would be what I'm describing here.I will keep you updated, just wanted to raise awareness and also get a reading of if it is important that the property be named
has
and nothasGravatar
or something else. Maybe @AO16 has some insight to that?Thanks!