From 58560c62b920f2923626756b095fdf7a797fda53 Mon Sep 17 00:00:00 2001 From: Jonathan Martin Date: Tue, 24 Feb 2015 18:33:26 -0500 Subject: [PATCH] JS snippet: anonymous function variable assignment. [Closes #524] --- snippets/javascript/javascript.snippets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index fa8123d..5fbad8f 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -15,6 +15,11 @@ snippet f function(${1}) { ${0} } +# Anonymous Function assigned to variable +snippet vaf + var ${1:function_name} = function(${2}) { + ${0} + }; # Function assigned to variable snippet vf var ${1:function_name} = function $1(${2}) {