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
The exception is on the defineProperty méthod. It says n already has the name property and that we are "Attempting to change value of a readonly property"
Digging deeper
When digging deeper into ember-popper I've seen that the components ember-popper and ember-popper-base are written with the ES6 extend word instead of using the typical Ember.Component.extend({ ... })
Interesting
My app includes tones of addons and popper is the only one using this notation for components.
There are other addons using the class Foo extend Bar syntax but never for components.
Maybe we should look into this.
Are you aware of any issue running ember-popper in Safari 9?
The text was updated successfully, but these errors were encountered:
Hey @joeyrogues, thanks for reporting this issue! It looks like this is being caused by the legacy class shim which is included for older version of Ember.js. Older versions of Ember can't use native class syntax, and the shim typically allows them to with some minor caveats.
The assignment you're pointing out is something we do to enable better logging and debugging, it gives the class an actual name instead of a random one. Seems like that may not be something we can rely on though, which is a shame 😞
As for using native class syntax with Ember, this is something that'll be coming to Ember soon (and hopefully will be the default!). ember-popper is one of the first addons that has been experimenting with it, so it's definitely pretty cutting edge, but we've been using it in production for some time now and find it very stable. If you'd like more information, I suggest checking out the documentation for ember-decorators! It goes into a lot of detail about how class syntax works with Ember and how you can use it today 😄
Good morning,
Stack
Description
I suspect that ember-popper is not working on Safari 9.
The following code raises an exception in Ember:
The exception is on the
defineProperty
méthod. It saysn
already has thename
property and that we are "Attempting to change value of a readonly property"Digging deeper
When digging deeper into ember-popper I've seen that the components
ember-popper
andember-popper-base
are written with the ES6extend
word instead of using the typicalEmber.Component.extend({ ... })
Interesting
My app includes tones of addons and popper is the only one using this notation for components.
There are other addons using the
class Foo extend Bar
syntax but never for components.Maybe we should look into this.
The text was updated successfully, but these errors were encountered: