- bump version! API is stable for a long time. (#52)
- auto bind
Signal.dispatch()
context. (#47) - add
SignalBinding.getSignal()
. (#48)
- fix AMD
define()
bug introduced on v0.8.0 (#46)
- expose Signal constructor for brevity instead of namespace while still keeping an alias for backwards compatibility. (#44)
- changed UMD to use unnamed define.(#41)
remove()
andhas()
now accepts thecontext
as second argument. (#40)
- allow
add()
andaddOnce()
same method multiple times if passing different context. (#39)
- Improve
dispatch()
performance ifSignal
doesn't have any listeners.
- Added:
Signal.memorize
. (#29)Signal.forget()
. (#29)Signal.has()
. (#35)
- changed the way the code is wrapped to have a single distribution file for all the environments. (#33)
- improved
SignalBinding.detach()
behavior. (#25)
-
Added:
SignalBinding.prototype.isBound()
(#25)SignalBinding.params
(#28)
-
Removed:
SignalBinding.prototype.dispose()
(#27)
- minor code cleaning, better error messages.
- removing a listener during dispatch was causing an error since listener was undefined. (#24 - thanks @paullewis)
- minor code cleaning.
- renamed distribution files to "signals.js" (#22)
- added NPM package.json and CommmonJS wrapper for NPM distribution. (#21 - thanks @tomyan)
-
Added:
Signal.active
SignalBinding.active
-
Removed:
Signal.protytpe.enable()
Signal.protytpe.disable()
Signal.protytpe.isEnabled()
SignalBinding.protytpe.enable()
SignalBinding.protytpe.disable()
SignalBinding.protytpe.isEnabled()
- created AMD wrapped version.
- switched from "module pattern" to a closure with a global export.
- added priority parameter to
add
andaddOnce
.
- improved code structure.
- changed to a module pattern.
- added YUI test coverage.
- improved build and src files structure.
- simplified
remove
,removeAll
,add
. - improved error messages.
- made
SignalBinding
constructor private. (#15) - changed params order on
SignalBinding
constructor. - removed
signals.isDef()
. (#14)
- added JSLint to the build process. (#12)
- validated source code using JSLint. (#13)
- improved docs.
-
Added:
SignalBinding.prototype.getListener()
(#3)Signal.prototype.dispose()
(#6)signals.VERSION
signals.isDef()
-
Removed:
SignalBinding.listener
(#3)
-
Renamed:
SignalBinding.listenerScope
->SignalBinding.context
(#4)
- Removed unnecessary function names (#5)
- Improved
remove()
,removeAll()
to dispose binding (#10)
- Added different HTML files to test dev/dist/min files.
- Updated test cases to match new API.
- Improved source code comments and documentation.
- Small refactoring for better organization and DRY.
- Added error messages for required params.
- Removed unnecessary info from
SignalBinding.toString()
.
- Added:
SignalBinding.prototype.detach()
SignalBinding.prototype.dispose()
- Added test cases for
detach
anddispose
.
- Improved docs for a few methods.
- Added internal method
Signal.prototype._addBinding()
.
- Renamed:
Signal.prototype.stopPropagation()
->Signal.prototype.halt()
Signal.prototype.pause()
->Signal.prototype.disable()
Signal.prototype.resume()
->Signal.prototype.enable()
Signal.prototype.isPaused()
->Signal.prototype.isEnabled()
SignalBinding.prototype.pause()
->SignalBinding.prototype.disable()
SignalBinding.prototype.resume()
->SignalBinding.prototype.enable()
SignalBinding.prototype.isPaused()
->SignalBinding.prototype.isEnabled()
- Calling
halt()
before/afterdispatch()
doesn't affect listeners execution anymore,halt()
only works during propagation.
- updated API calls to reflect new method names.
- added tests that match
halt()
before/afterdispatch()
.
Added inline documentation to source code and included an HTML version of the documentation together with distribution files.
- Added:
Signal.prototype.pause()
Signal.prototype.resume()
Signal.prototype.isPaused()
Signal.prototype.stopPropagation()
SignalBinding.prototype.isPaused()
- Increased test coverage a lot.
- Tests added:
- pause/resume (for individual bindings and signal)
- stopPropagation (using
return false
andSignal.prototype.stopPropagation()
) SignalBindings.prototype.isOnce()
- if same listener added twice returns same binding
Small refactoring and code cleaning.
- initial release, support of basic features.