Merge pull request #525 from nybblr/js-snippet-vaf

JS snippet: anonymous function variable assignment.
This commit is contained in:
Louis Pilfold 2015-02-25 09:31:51 +00:00
commit 58a7ac7526

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}) {