Skip to content

Commit 0e2ab90

Browse files
committed
Merge pull request #26 from cnweibo/master
iife tab to select the parameters easy to delete or change
2 parents f7753cf + 72e15e2 commit 0e2ab90

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)