From e19ccebe270d5daeee9884d3600c574452b228fe Mon Sep 17 00:00:00 2001 From: bounceme Date: Mon, 25 Jul 2016 00:34:57 -0700 Subject: [PATCH] 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}) {