Skip to content

Commit 09d5a7b

Browse files
author
Zeno Rocha
committedMar 19, 2014
Adding object property function
1 parent d98d3db commit 09d5a7b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
 

‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,14 @@ ${1:methodName}.call(${2:context}, ${3:arguments})
214214
${1:methodName}.apply(${2:context}, [${3:arguments}])
215215
```
216216

217+
### [ofn] function as a property of an object
218+
219+
```javascript
220+
${1:functionName}: function (${2:arguments}) {
221+
${3}
222+
}
223+
```
224+
217225
## Timer
218226

219227
### [si] setInterval
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<snippet>
2+
<content><![CDATA[
3+
${1:functionName}: function (${2:arguments}) {
4+
${3}
5+
}
6+
]]></content>
7+
<tabTrigger>ofn</tabTrigger>
8+
<scope>source.js</scope>
9+
<description>function as a property of an object</description>
10+
</snippet>

0 commit comments

Comments
 (0)