Created
April 16, 2012 14:28
-
-
Save ringmaster/2399140 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$('.todo').live('keypress', function(ev){ | |
create = _.reduce($('.todo'), function(memo, el) { | |
return memo && $(el).val() != ''; | |
}, true); | |
if(create) { | |
$('#todolist').append(ich.t_todoitem({})); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment