Skip to content

Conversation

@gonfunko
Copy link
Contributor

@gonfunko gonfunko commented Aug 2, 2021

The basics

  • I branched from goog_module
  • My pull request is against goog_module
  • My code follows the style guide
  • My code is presented in the form suggested in the module
    conversion guide
  • I have run npm test.

The details

Resolves

Part of #5026

Proposed Changes

Converts core/events/events_selected.js to goog.module with ES6 const/let.

@gonfunko gonfunko requested a review from a team as a code owner August 2, 2021 18:03
@gonfunko gonfunko requested a review from alschmiedt August 2, 2021 18:03
@github-actions github-actions bot added this to the 2021_q3_release milestone Aug 2, 2021
Blockly.Events.Selected = function(opt_oldElementId, opt_newElementId,
opt_workspaceId) {
Blockly.Events.Selected.superClass_.constructor.call(this, opt_workspaceId);
const Selected = function(opt_oldElementId, opt_newElementId, opt_workspaceId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have to do it right now, but I think this falls under the category of classes that could use a rename. I think SelectedEvent makes a lot more sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

+1, that would definitely make it clearer. Added a note to #5073 so we don't forget to revisit this.

@google-cla google-cla bot added the cla: yes Used by Google's CLA checker. label Aug 3, 2021
@gonfunko gonfunko merged commit 724cdd3 into RaspberryPiFoundation:goog_module Aug 3, 2021
@gonfunko gonfunko deleted the events_selected branch August 3, 2021 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Used by Google's CLA checker. type: cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants