From d2ad9874381413ae1d174577a74fe46b7a35d75c Mon Sep 17 00:00:00 2001 From: Christopher Joslyn Date: Tue, 5 Jul 2011 22:35:16 -0400 Subject: [PATCH] Removed redundant try snippet from the javascript collection. --- snippets/javascript.snippets | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/snippets/javascript.snippets b/snippets/javascript.snippets index ba865ce..ee2aeb4 100644 --- a/snippets/javascript.snippets +++ b/snippets/javascript.snippets @@ -69,8 +69,8 @@ snippet wh snippet try try { ${1:/* code */} - } catch(e) { - ${2:/* handle error */} + } catch(${2:e}) { + ${3:/* handle error */} } # do...while snippet do @@ -91,12 +91,6 @@ snippet get # Get Element snippet gett getElementBy${1:Id}('${2}')${3} -# Get Element -snippet try - try { - ${2} - } catch (${2:e}) { - } # console.log (Firebug) snippet cl console.log(${1});