Merge pull request #71 from thisgeek/master

Remove needless semicolon from Javascript for-loops
This commit is contained in:
Honza Pokorny 2012-01-30 07:43:36 -08:00
commit 5eed06fe0e

View File

@ -54,12 +54,12 @@ snippet case
snippet for
for (var ${2:i} = 0; $2 < ${1:Things}.length; $2${3: += 1}) {
${4:$1[$2]}
};
}
# for (...) {...} (Improved Native For-Loop)
snippet forr
for (var ${2:i} = ${1:Things}.length - 1; $2 >= 0; $2${3: -= 1}) {
${4:$1[$2]}
};
}
# while (...) {...}
snippet wh
while (${1:/* condition */}) {
@ -101,7 +101,7 @@ snippet ret
snippet fori
for (var ${1:prop} in ${2:Things}) {
${3:$2[$1]}
};
}
# hasOwnProperty
snippet has
hasOwnProperty(${1})