From e19ccebe270d5daeee9884d3600c574452b228fe Mon Sep 17 00:00:00 2001 From: bounceme Date: Mon, 25 Jul 2016 00:34:57 -0700 Subject: [PATCH 1/2] alternate iife in old format --- snippets/javascript/javascript.snippets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index 0d054f4..3573fae 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -30,6 +30,11 @@ snippet (f (function(${1}) { ${0} }(${2})); +# Minify safe iife +snippet iife + ;(function(${1}) { + ${0} + }(${2})) # self-defining function snippet sdf var ${1:function_name} = function (${2:argument}) { From f4c2004d125c8470e866806bd586d5753c951aa6 Mon Sep 17 00:00:00 2001 From: bounceme Date: Mon, 25 Jul 2016 02:50:24 -0700 Subject: [PATCH 2/2] Update javascript.snippets --- snippets/javascript/javascript.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index 3573fae..db04e54 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -31,7 +31,7 @@ snippet (f ${0} }(${2})); # Minify safe iife -snippet iife +snippet ;fe ;(function(${1}) { ${0} }(${2}))