Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Konoplov committed Feb 24, 2016
1 parent 0a1660a commit da0bedc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publisher-subscriber",
"version": "1.0.4",
"version": "1.0.5",
"main": "build/publisher-subscriber.js",
"description": "Lightning fast Publisher-Subscriber pattern written in CoffeeScript. Compatible with Backbone.Events",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion build/publisher-subscriber.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
isEventable: isEventable
InstanceMembers: PS
included: (Class) ->
Class.initializer? 'publisher-subscriber', -> @_2 = {}; @_3 = {}; return
Class.initializer? 'publisher-subscriber', -> @_2 ?= {}; @_3 ?= {}; return
return

)
8 changes: 6 additions & 2 deletions build/publisher-subscriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,12 @@
included: function(Class) {
if (typeof Class.initializer === "function") {
Class.initializer('publisher-subscriber', function() {
this._2 = {};
this._3 = {};
if (this._2 == null) {
this._2 = {};
}
if (this._3 == null) {
this._3 = {};
}
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/publisher-subscriber.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publisher-subscriber",
"version": "1.0.4",
"version": "1.0.5",
"description": "Lightning fast Publisher-Subscriber pattern written in CoffeeScript. Compatible with Backbone.Events",
"main": "build/publisher-subscriber.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions source/__manifest__.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ PS = {}
# @include notify.coffee
# @include unbind.coffee

VERSION: '1.0.4'
VERSION: '1.0.5'
isNoisy: isNoisy
isEventable: isEventable
InstanceMembers: PS
included: (Class) ->
Class.initializer? 'publisher-subscriber', -> @_ps = {}; @_psTo = {}; return
Class.initializer? 'publisher-subscriber', -> @_ps ?= {}; @_psTo ?= {}; return
return

0 comments on commit da0bedc

Please sign in to comment.