Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remove some logs, add safety check

  • Loading branch information...
commit 825816159791359329afa2c0b40d018f3b27a2d7 1 parent 5d1c8df
authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 bling.coffee
5 bling.coffee
@@ -1946,7 +1946,6 @@ Object.Extend Event,
1946 1946 archive_trim = 100 # how much to trim all at once if we go over the maximum
1947 1947
1948 1948 publish = (e, args = []) ->
1949   - $.log "published: #{e}", args
1950 1949 archive[e] ?= []
1951 1950 archive[e].push(args)
1952 1951 if archive[e].length > archive_limit
@@ -1962,7 +1961,6 @@ Object.Extend Event,
1962 1961 if replay # replay the publish archive
1963 1962 archive[e] ?= []
1964 1963 for args in archive[e]
1965   - $.log "replayed: #{e}", args
1966 1964 func.apply null, args
1967 1965 func
1968 1966
@@ -1970,7 +1968,8 @@ Object.Extend Event,
1970 1968 if not func?
1971 1969 subscribers[e] = []
1972 1970 else
1973   - i = subscribers[e]?.indexOf(func)
  1971 + subscribers[e] ?= []
  1972 + i = subscribers[e].indexOf(func)
1974 1973 if i > -1
1975 1974 subscribers[e].splice(i,i)
1976 1975

0 comments on commit 8258161

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