Skip to content

Conversation

@dgutride
Copy link
Member

ManageIQ identified an issue with this function because the same function had been defined globally in their codebase. This wraps the function an IIFE which causes the directives to be immediately created and the function is disposed of (and not available on the window object any longer).

Testing done:
Prior to the fix - wizardButtonDirective() can be called in the console when the wizard code is loaded, afterwards, the directives are created upon load and then the function isn't available globally.

wizardButtonDirective('pfWizFinish');
wizardButtonDirective('pfWizCancel');
wizardButtonDirective('pfWizReset');
})();
Copy link
Member

Choose a reason for hiding this comment

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

I would still like to see these function prefixed with pf. For example, pfWizardButtonDirective('pfWizNext')

Copy link
Member

@jeff-phillips-18 jeff-phillips-18 left a comment

Choose a reason for hiding this comment

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

👍 LGTM

Thanks @dgutride!

@jeff-phillips-18 jeff-phillips-18 merged commit 7635f3e into patternfly:master Oct 25, 2016
@dgutride dgutride deleted the fix-wizard-buttons branch December 9, 2016 16:59
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