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

Add Deprecate components support #3795

Merged
merged 4 commits into from
May 31, 2016
Merged

Add Deprecate components support #3795

merged 4 commits into from
May 31, 2016

Conversation

thojkooi
Copy link
Contributor

When merged this pull request will:

  • Add support for deprecating components
  • Deprecrates ACE Sitting. Moved to ACEX Sitting.

@thojkooi thojkooi added the kind/enhancement Release Notes: **IMPROVED:** label May 15, 2016
@thojkooi thojkooi added this to the 3.6.0 milestone May 15, 2016
//If not enabled, then do not add CanInteractWith Condition or event handlers:
if (!GVAR(enable)) exitWith {};
if (!GVAR(enable) || GVAR(isEnabled)) exitWith {};
GVAR(isEnabled) = true;
Copy link
Member

Choose a reason for hiding this comment

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

What is that for again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ensures that the module will not load in twice

Copy link
Member

Choose a reason for hiding this comment

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

How could it? Unless someone put 2 of those down (in which case he should get all the RPT warnings).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are quite right - this isn't necessary here, but it is for the port to ACEX. It should not have been commited with this PR.

Copy link
Member

@jonpas jonpas May 20, 2016

Choose a reason for hiding this comment

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

How are we going to handle that for components which have modules that can be placed multiple times (eg. slideshow)? Current isEnabled check in ACEX sitting component would prevent that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same way we handle functions that we deprecate.

Copy link
Member

Choose a reason for hiding this comment

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

Never mind, slideshow doesn't even have a XEH postInit, was thinking of something else.

IsEnabled check is not necessary here. It should not have been included, as it was a left over from testing for migrating sitting to ACEX.
@thojkooi thojkooi merged commit d7b239f into master May 31, 2016
@thojkooi thojkooi deleted the deprecate-components branch May 31, 2016 08:40
@jonpas
Copy link
Member

jonpas commented Jun 7, 2016

@Glowbal Will this print warnings for sitting? If so it has to be taken out before release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants