Skip to content

Commit 72e15e2

Browse files
committed
Merge pull request #1 from cnweibo/cnweibo-patch-1
iife tab to select the parameters easy to delete or change
2 parents c87e71a + de22cfd commit 72e15e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

function-iife.sublime-snippet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<snippet>
22
<content><![CDATA[
3-
(function(window, document, undefined) {
4-
${1}
5-
})(window, document);
3+
(function(${1:window}, ${2:document}) {
4+
${3}
5+
})(${1:window}, ${2:document});
66
]]></content>
77
<tabTrigger>iife</tabTrigger>
88
<scope>source.js, source.jsx, source.ts</scope>
99
<description>immediately-invoked function expression</description>
10-
</snippet>
10+
</snippet>

0 commit comments

Comments
 (0)