JS snippet: anonymous function variable assignment.

[Closes #524]
This commit is contained in:
Jonathan Martin 2015-02-24 18:33:26 -05:00
parent 7ce372f83d
commit 58560c62b9

View File

@ -15,6 +15,11 @@ snippet f
function(${1}) { function(${1}) {
${0} ${0}
} }
# Anonymous Function assigned to variable
snippet vaf
var ${1:function_name} = function(${2}) {
${0}
};
# Function assigned to variable # Function assigned to variable
snippet vf snippet vf
var ${1:function_name} = function $1(${2}) { var ${1:function_name} = function $1(${2}) {