Closed felipehw closed 10 years ago
Thanks!
I think it was caused because events
was used by Ember in the past at some point. I don't remember ever having to use it – I thought it went straight from nothing to actions
, but because Ember raises a warning about the events
object if actions
is undefined
, then I think it was overwriting it, thus removing everything that you defined on events
for EmberSockets.
As a result I've had to change the events
object back to sockets
, and as such bumped the version fo 0.4.0. Will update the README accordingly.
Thanks for the fix!
In my tests a controller only receive events from the server if we set the
actions
property in the controller (we can set a empty object).If i make a controller without the
actions
property, the things in theevents
hash don't work.For example:
Work:
Dont work: