Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Allow target in dropdown auto-flip to be window #1603

Merged
merged 1 commit into from
Nov 10, 2015

Conversation

interactivellama
Copy link
Contributor

This allows explicitly setting auto-flip container to window via data-target=window.

@swilliamset
Copy link
Contributor

Reconsider with less condition nesting

@interactivellama
Copy link
Contributor Author

Updated with flatter decision tree @futuremint @swilliamset

var noTargetChosen = targetSelector !== 'window' && !targetSelector;

if (nonWindowTargetChosen) {
targetedElement = $(targetSelector);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this an accidental global?

Copy link
Contributor

Choose a reason for hiding this comment

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

I was just going to comment on this... @interactivellama, when I run grunt test jshint catches this and says it is undefined

swilliamset added a commit that referenced this pull request Nov 10, 2015
Allow window override in dropdown auto-flip
@swilliamset swilliamset merged commit ae151d3 into ExactTarget:master Nov 10, 2015
@interactivellama interactivellama changed the title Allow window override in dropdown auto-flip Allow override in dropdown auto-flip to be window Nov 10, 2015
@interactivellama interactivellama changed the title Allow override in dropdown auto-flip to be window Allow target in dropdown auto-flip to be window Nov 10, 2015
@interactivellama interactivellama deleted the auto-flip-window branch April 4, 2016 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants