Browse files

Added immediate function snippet.

  • Loading branch information...
1 parent a3768aa commit bf1c01883f6d10c0e016f5dd1d2fcbcd7c8825c3 @thisgeek thisgeek committed Jan 10, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 snippets/javascript.snippets
View
5 snippets/javascript.snippets
@@ -12,6 +12,11 @@ snippet fun
# Anonymous Function
snippet f
function(${1}) {${2}};
+# Immediate function
+snippet (f
+ (function(${1}) {
+ ${3:/* code */}
+ }(${2}));
# if
snippet if
if (${1:true}) {${2}}

0 comments on commit bf1c018

Please sign in to comment.