-
Added:
SignalBinding.prototype.getListener()
(issue #3)Signal.dispose()
(issue #6)signals.VERSION
signals.isDef()
-
Removed:
-
SignalBinding.listener
(issue #3) -
Renamed:
-
SignalBinding.listenerScope
->SignalBinding.context
(issue #4)
- Removed unnecessary function names (issue #5)
- Improved
remove()
,removeAll()
to dispose binding (issue #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.