Permalink
Browse files

iife tab to select the parameters easy to delete or change

iife snippet, we use tab to select the parameters, and we can easily change or delete the parameter. This is very user friendly.
  • Loading branch information...
cnweibo committed Jan 18, 2016
1 parent c87e71a commit de22cfd51bb4b7a0d43f18092fee9934fac0bddf
Showing with 4 additions and 4 deletions.
  1. +4 −4 function-iife.sublime-snippet
@@ -1,10 +1,10 @@
<snippet>
<content><![CDATA[
(function(window, document, undefined) {
${1}
})(window, document);
(function(${1:window}, ${2:document}) {
${3}
})(${1:window}, ${2:document});
]]></content>
<tabTrigger>iife</tabTrigger>
<scope>source.js, source.jsx, source.ts</scope>
<description>immediately-invoked function expression</description>
</snippet>
</snippet>

0 comments on commit de22cfd

Please sign in to comment.