From 6448deadba0d0b581840adf352a253ab285a578e Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Fri, 12 Sep 2014 17:12:00 +0100 Subject: [PATCH] Add JS function assigned to variable snippet --- snippets/javascript/javascript.snippets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index f4ef351..89e18d9 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -13,6 +13,11 @@ snippet f function(${1}) { ${0} } +# Function assigned to variable +snippet vf + var ${1} = function ${1}(${2}) { + ${0} + } # Immediate function snippet (f (function(${1}) {