Skip to content

Commit 1fe42cc

Browse files
committed
Self invoked functions. Strict and non strict
1 parent 039b725 commit 1fe42cc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

sef.sublime-snippet

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<snippet>
2+
<content><![CDATA[;(function () {
3+
${1:$TM_SELECTED_TEXT}$0
4+
}());]]></content>
5+
<tabTrigger>sif</tabTrigger>
6+
<scope>source.js</scope>
7+
<description>Self invoked anonimous function</description>
8+
</snippet>

sefs.sublime-snippet

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<snippet>
2+
<content><![CDATA[;(function () {
3+
'use strict';
4+
5+
${1:$TM_SELECTED_TEXT}$0
6+
}());]]></content>
7+
<tabTrigger>sifs</tabTrigger>
8+
<scope>source.js</scope>
9+
<description>Self invoked anonimous "strict" function</description>
10+
</snippet>

0 commit comments

Comments
 (0)