Skip to content

Commit 9ff441a

Browse files
committed
Merge pull request scrooloose#9 from thisgeek/master
Remove redundant try
2 parents d2e0f8d + d2ad987 commit 9ff441a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

snippets/javascript.snippets

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ snippet wh
6969
snippet try
7070
try {
7171
${1:/* code */}
72-
} catch(e) {
73-
${2:/* handle error */}
72+
} catch(${2:e}) {
73+
${3:/* handle error */}
7474
}
7575
# do...while
7676
snippet do
@@ -91,12 +91,6 @@ snippet get
9191
# Get Element
9292
snippet gett
9393
getElementBy${1:Id}('${2}')${3}
94-
# Get Element
95-
snippet try
96-
try {
97-
${2}
98-
} catch (${2:e}) {
99-
}
10094
# console.log (Firebug)
10195
snippet cl
10296
console.log(${1});

0 commit comments

Comments
 (0)