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

Simplified list rotation in demo page #17

Merged
1 commit merged into from Nov 30, 2010
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Quickstart/src/demos/demos_comet3.erl
Expand Up @@ -70,7 +70,7 @@ cycle_and_update(Speed, ControlID, List) ->

% Take the first item from the list, make it the last item on the list.
% So if we start with [1, 2, 3, 4], we'd end with [2, 3, 4, 1]
List1 = lists:reverse([hd(List) | lists:reverse(tl(List))]),
List1 = tl(List) ++ [hd(List)],

% Loop. This process will automatically be killed
% once the page stops requesting the output that
Expand Down