Created
October 13, 2009 03:13
-
-
Save ChrisMissal/208942 to your computer and use it in GitHub Desktop.
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
function createMenu(desk) { | |
var createMenuItem = function(text, className) { | |
return $("<div/>").html(text).addClass("clickable").addClass(className).hide(); | |
}; | |
desk.append(createMenuItem('Trouble', 'troubleFlag')); | |
desk.append(createMenuItem('Leader', 'leaderFlag')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment