Skip to content

Commit

Permalink
Updated the .property and .observer snippets to use new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Garth committed Apr 11, 2015
1 parent dbf0042 commit 30a6926
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ fooChanged: function() {

CoffeeScript:
```coffee
fooChanged:( ->
fooChanged: Ember.observer 'foo', ->
# body
).observes 'foo'
```


Expand Down
7 changes: 3 additions & 4 deletions snippets/properties.cson
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,16 @@
'Ember Computed Property':
'prefix': 'property'
'body': """
${1:fooCount}:( ->
${1:fooCount}: Ember.computed ${2:'}${3:property}${2:'} ->
${4:# body}
).property${2:(}'${3:property}'${2:)}
"""

'Ember Observer':
'prefix': 'observes'
'body': """
${1:fooChanged}:( ->
${1:fooChanged}: Ember.observer${2:(}'${3:property}', ->
${4:# body}
).observes${2:(}'${3:property}'${2:)}
${2:)}
"""

'Ember Actions':
Expand Down

0 comments on commit 30a6926

Please sign in to comment.