Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor tweaks to reduce CoffeeScript noise

  • Loading branch information...
commit f7f6507ee74aa92625e49193b6f39c4e3c7f75a4 1 parent 172185c
@kmalakoff authored
View
4 src/lifecycle.coffee
@@ -160,12 +160,12 @@ class LC.RefCountable
retain: ->
throw "RefCountable: ref_count is corrupt: #{@__LC.ref_count}" if (@__LC.ref_count <= 0)
@__LC.ref_count++
- @
+ return @
release: ->
throw "RefCountable: ref_count is corrupt: #{@__LC.ref_count}" if (@__LC.ref_count <= 0)
@__LC.ref_count--
@__destroy() unless @__LC.ref_count
- @
+ return @
refCount: -> return @__LC.ref_count
View
8 test/core/test-amd.coffee
@@ -86,11 +86,11 @@ $(->
RetainRelease.instance_count++
retain: ->
@retain_count++
- @
+ return @
release: ->
@retain_count--
RetainRelease.instance_count-- if (@retain_count is 0)
- @
+ return @
RetainRelease.instance_count = 0
original = new RetainRelease()
@@ -166,11 +166,11 @@ $(->
return new RetainReleaseWithClone()
retain: ->
@retain_count++
- @
+ return @
release: ->
@retain_count--
RetainReleaseWithClone.instance_count-- if (@retain_count is 0)
- @
+ return @
RetainReleaseWithClone.instance_count = 0
original = new RetainReleaseWithClone()
View
8 test/core/test.coffee
@@ -90,11 +90,11 @@ $(->
RetainRelease.instance_count++
retain: ->
@retain_count++
- @
+ return @
release: ->
@retain_count--
RetainRelease.instance_count-- if (@retain_count is 0)
- @
+ return @
RetainRelease.instance_count = 0
original = new RetainRelease()
@@ -170,11 +170,11 @@ $(->
return new RetainReleaseWithClone()
retain: ->
@retain_count++
- @
+ return @
release: ->
@retain_count--
RetainReleaseWithClone.instance_count-- if (@retain_count is 0)
- @
+ return @
RetainReleaseWithClone.instance_count = 0
original = new RetainReleaseWithClone()
Please sign in to comment.
Something went wrong with that request. Please try again.