Add JS function assigned to variable snippet

This commit is contained in:
Louis Pilfold 2014-09-12 17:12:00 +01:00
parent 13a14fa514
commit 6448deadba

View File

@ -13,6 +13,11 @@ snippet f
function(${1}) { function(${1}) {
${0} ${0}
} }
# Function assigned to variable
snippet vf
var ${1} = function ${1}(${2}) {
${0}
}
# Immediate function # Immediate function
snippet (f snippet (f
(function(${1}) { (function(${1}) {