All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
0.10.0 - 2016-02-09
- monitor can only be updated if it has been started before
- possible multiple calls to monitor listeners after stop event
- publish 'stop' event if monitor is stopped in first update cycle
0.9.0 - 2016-01-12
- CommonJS compatibility
- added config parameter
precision
to VisSense config object
Utils.percentage()
does not round return value
0.8.3 - 2015-09-07
- EventStrategy adds listeners to referenceWindow
0.8.2 - 2015-06-11
- check computed style attribute "visibility" only once
0.8.1 - 2015-05-17
- removed the banner from the minified file (a comment in the first row of the file vissense.min.js)
0.8.0 - 2015-04-15
- added support for defining a VisSense objects reference window
- added function
Utils.createVisibilityApi
- added method
VisSense.referenceWindow
0.7.0 - 2015-04-13
- added method
VisMon.publish
- added
VisMon.Builder
0.6.1 - 2015-03-17
- prevent multiple executions of a throttled function
0.6.0 - 2015-03-16
- added function
Utils.throttle
- adapted EventStrategy to use
Utils.throttle
instead ofUtils.debounce
- deprecated EventStrategy option
debounce
- usethrottle
instead
0.5.0 - 2015-03-14
- added function
VisSense.noConflict
- removed deprecated method
VisMon.use
- removed deprecated method
VisMon.onUpdate
- useVisMon.on('update', ...)
- removed deprecated method
VisMon.onHidden
- useVisMon.on('hidden', ...)
- removed deprecated method
VisMon.onVisible
- useVisMon.on('visible', ...)
- removed deprecated method
VisMon.onFullyVisible
- useVisMon.on('fullyvisible', ...)
- removed deprecated method
VisMon.onVisibilityChange
- useVisMon.on('visibilitychange', ...)
- removed deprecated method
VisMon.onPercentageChange
- useVisMon.on('percentagechange', ...)
- prevent emitting start/stop events if already started/stopped
0.4.0 - 2015-03-03
- added function
Utils.once
- added method
VisSense.element
- added method
Strategy.init
- added
start
andstop
events toVisMon
- added
Utils.VisibilityApi
- react on
touchmove
events inVisMon.EventStrategy
- changed order of
percentagechange
event parameters - listeners on all events (including
*
) are only called once per even - template methods
Strategy.start
andStrategy.stop
do not throw an error by default
- deprecated
Vismon.on<Event>
- useVismon.on('<Event>', ...)
instead - deprecated
VisMon.use
0.3.0 - 2015-02-08
- added
Utils.async
- added
VisMon.startAsync
- added constructor option
visibilityHooks
toVisSense
- removed
VisMon.NoopStrategy