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

Alert and confirm #34

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Alert and confirm #34

wants to merge 6 commits into from

Conversation

asolove
Copy link
Contributor

@asolove asolove commented Sep 19, 2013

This supersedes @aadsm's pull request (#20), adding documentation for the alert and confirm dialogs.

var overlays = ["alert", "alert-light", "alert-dark", "confirm", "confirm-light", "confirm-dark"];
overlays.forEach(function(overlayName){
this[overlayName].element.appendChild(this[overlayName]._overlay.element);
}.bind(this));
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of doing .bind(this) you can pass this in as the last argument of forEach

@hthetiot hthetiot added this to the 3.1.x milestone Jun 17, 2017
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.

None yet

4 participants