Skip to content

Latest commit

 

History

History
118 lines (70 loc) · 2.8 KB

CHANGELOG.markdown

File metadata and controls

118 lines (70 loc) · 2.8 KB

JS-Signals Changelog

v0.5 (2010/12/03)

API changes

  • 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)

Fixes

  • Removed unnecessary function names (issue #5)
  • Improved remove(), removeAll() to dispose binding (issue #10)

Test Changes

  • Added different HTML files to test dev/dist/min files.
  • Updated test cases to match new API.

Other

  • 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().

v0.4 (2010/11/27)

API changes

  • Added:
    • SignalBinding.prototype.detach()
    • SignalBinding.prototype.dispose()

Test Changes

  • Added test cases for detach and dispose.

Other

  • Improved docs for a few methods.
  • Added internal method Signal.prototype._addBinding().

v0.3 (2010/11/27)

API changes

  • 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()

Fixes

  • Calling halt() before/after dispatch() doesn't affect listeners execution anymore, halt() only works during propagation.

Test Changes

  • updated API calls to reflect new method names.
  • added tests that match halt() before/after dispatch().

Other

Added inline documentation to source code and included an HTML version of the documentation together with distribution files.

v0.2 (2010/11/26)

API changes

  • Added:
    • Signal.prototype.pause()
    • Signal.prototype.resume()
    • Signal.prototype.isPaused()
    • Signal.prototype.stopPropagation()

Fixes

  • SignalBinding.prototype.isPaused()

Test Changes

  • Increased test coverage a lot.
  • Tests added:
    • pause/resume (for individual bindings and signal)
    • stopPropagation (using return false and Signal.prototype.stopPropagation())
    • SignalBindings.prototype.isOnce()
    • if same listener added twice returns same binding

Other

Small refactoring and code cleaning.

v0.1 (2010/11/26)

  • initial release, support of basic features.