Created
February 5, 2013 20:36
-
-
Save shanemcd/4717435 to your computer and use it in GitHub Desktop.
loop through a hash and apply different tooltips to multiple elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
icons = | |
preview: "Print Preview" | |
edit: "Edit Question" | |
comment: "Comment" | |
trash: "Delete" | |
for icon, text of icons | |
$(this.el).find(".#{icon}-image").tooltip | |
title: text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment