Skip to content
Browse files

Minor tweaks to reduce CoffeeScript noise

  • Loading branch information...
1 parent 026abaf commit 525a41062af4a9384a9f3f1c51997ecf37127e68 Kevin Malakoff committed Sep 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/backbone-modelref.coffee
View
4 src/backbone-modelref.coffee
@@ -48,7 +48,7 @@ class Backbone.ModelRef
# unbind all remaining events
@unbind(null)
- @
+ return @
getModel: ->
@id = @cached_model.id if @cached_model and not @cached_model.isNew() # upgrade the reference from the cached model
@@ -97,7 +97,7 @@ Backbone.Model::bindLoadingStates = (params) ->
params(@)
else if params.loaded
params.loaded(@)
- @
+ return @
Backbone.Model::unbindLoadingStates = (params) -> @

0 comments on commit 525a410

Please sign in to comment.
Something went wrong with that request. Please try again.