Skip to content

Add deprecation guide for Ember.Evented and @ember/object/events #1404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wagenet
Copy link
Contributor

@wagenet wagenet commented Jun 20, 2025

@wagenet wagenet marked this pull request as draft June 20, 2025 21:43
Copy link

netlify bot commented Jun 20, 2025

Deploy Preview for ember-deprecations ready!

Name Link
🔨 Latest commit 4c20d4a
🔍 Latest deploy log https://app.netlify.com/projects/ember-deprecations/deploys/685971d85a69940008386557
😎 Deploy Preview https://deploy-preview-1404--ember-deprecations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

this.#emitter.emit('loggedOut', oldUser);
}

// Public subscription methods
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli Jun 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, maybe

on(event, callbark) {
  return this.#emitter.on(event, callbark);
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but what you have is easier to be type-safe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants