vimrc/sources_non_forked/snipmate-snippets/javascript-jquery/tog.snippet

7 lines
179 B
Text
Raw Normal View History

${1:obj}.toggle(function() {
${2:// Stuff to do every *odd* time the element is clicked;}
}, function() {
${3:// Stuff to do every *even* time the element is clicked;}
});
${4}