]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
Rewrite event listener to make spying possible. 9286/head
authorMarius Olbertz <marius.olbertz@gmail.com>
Sat, 22 Oct 2016 15:17:48 +0000 (17:17 +0200)
committerMarius Olbertz <marius.olbertz@gmail.com>
Sat, 22 Oct 2016 15:17:48 +0000 (17:17 +0200)
commitc2c1c45add757629efbc161250b109a7f1cba0e5
treecdb2b08ca13564963b0fed3ad68e4abd6b247e04
parenteaa40a4d0c54b8312a11602a729bddc053b1cadf
Rewrite event listener to make spying possible.

Arrow notation makes `bind(this)` statement obsolete, so it can be replaced with an anonymous function calling `_reflow()`, which allows using a `sinon.spy` during the unit tests.
js/foundation.interchange.js