diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index da60381..ec0a97f 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -1,11 +1,11 @@ # prototype snippet proto - ${1}.prototype.${2} = function(${3}) { + ${1:class_name}.prototype.${2:method_name} = function(${3}) { ${0} }; # Function snippet fun - function ${1}(${2}) { + function ${1:function_name}(${2}) { ${0} } # Anonymous Function