Improvements to the js snippets by Harry Xu.

This commit is contained in:
Holger Rapp 2013-01-25 08:27:41 +01:00
commit d4bda4f95f
2 changed files with 10 additions and 2 deletions

View File

@ -51,11 +51,18 @@ function ${1:function_name} (${2:argument}) {
endsnippet endsnippet
snippet ife "if ___ else" snippet ife "if ___ else"
if (${1:true}) {$0} else{}; if (${1:condition}) {
${2://code}
}
else {
${3://code}
}
endsnippet endsnippet
snippet if "if" snippet if "if"
if (${1:true}) {$0}; if (${1:condition}) {
${0://code}
}
endsnippet endsnippet
snippet timeout "setTimeout function" snippet timeout "setTimeout function"

View File

@ -1307,6 +1307,7 @@ Contributors listed in chronological order:
Steven Humphrey (shumphrey) Steven Humphrey (shumphrey)
Björn Winckler (b4winckler) Björn Winckler (b4winckler)
David Brown (Nali4Freedom) David Brown (Nali4Freedom)
Harry Xu (harryxu)
Thank you for your support. Thank you for your support.