Skip to content
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

Remove sendAction API #860

Merged
merged 1 commit into from
Feb 3, 2021
Merged

Remove sendAction API #860

merged 1 commit into from
Feb 3, 2021

Conversation

twokul
Copy link
Contributor

@twokul twokul commented Feb 2, 2021

Summary

As we are dropping support for older version of Ember.js, we need to make sure we trim the usage of old/deprecated APIs, as well. This time around it is the mechanism by which the actions are propagated, or sendAction API.

sendAction API has been deprecated in favour of closure actions seems like forever ago (Ember 2.0+ but do not quote me on that.)

This PR makes sure we use only closure actions moving forward. It also contains a breaking change: the consumers that passed actions via a string (i.g. onUpdateSorts="myAction") will have to change their code to onUpdateSorts=(action "myAction").

This PR targets 3.0 release.

Closes #825
Closes #801
Related to #819

Known Actions

  • onSelectionToggled
  • onClick
  • onCollapseToggled
  • onUpdateSorts
  • onReorder
  • onResize
  • onHeaderCellContextMenu
  • onSelect
  • onRowClick
  • onRowDoubleClick
  • onCellClick
  • onCellDoubleClick

Copy link
Member

@mixonic mixonic left a comment

Choose a reason for hiding this comment

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

Epic

@twokul twokul merged commit f2a25a7 into 3.0-beta Feb 3, 2021
@twokul twokul deleted the twokul/drop-send-action branch February 3, 2021 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants