Skip to content

Commit a727fff

Browse files
author
Zeno Rocha
committed
Merge pull request #14 from robdodson/function-braces
Consistent space after function keyword
2 parents 3165a37 + c0bc1b1 commit a727fff

6 files changed

+6
-6
lines changed

dom-addEvent.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[
3-
${1:document}.addEventListener('${2:event}', function(e) {
3+
${1:document}.addEventListener('${2:event}', function (e) {
44
${0:// body...}
55
});
66
]]></content>

function-anonymous.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[
3-
function(${1:arguments}) {
3+
function (${1:arguments}) {
44
${0:// body...}
55
}
66
]]></content>

function-prototype.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[
3-
${1:ClassName}.prototype.${2:methodName} = function(${3:arguments}) {
3+
${1:ClassName}.prototype.${2:methodName} = function (${3:arguments}) {
44
${0:// body...}
55
}
66
]]></content>

function.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[
3-
function ${1:methodName} (${2:arguments}) {
3+
function ${1:methodName}(${2:arguments}) {
44
${0:// body...}
55
}
66
]]></content>

timer-setInterval.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[
3-
setInterval(function() {
3+
setInterval(function () {
44
${0:// body...}
55
}, ${1:delay});
66
]]></content>

timer-setTimeout.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[
3-
setTimeout(function() {
3+
setTimeout(function () {
44
${0:// body...}
55
}, ${1:delay});
66
]]></content>

0 commit comments

Comments
 (0)