- commit
- 426e69e68f6524401329dd39e2fe581a479e0451
- parent
- f7080be90e708574974c00c2ee376ffad7e6fa0b
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2015-08-23 07:37
add note about $.destroy timeout
Diffstat
| M | src/muu-dom-helpers.js | 4 | ++++ |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/muu-dom-helpers.js b/src/muu-dom-helpers.js
@@ -91,6 +91,10 @@ define(['muu-js-helpers'], function(_) {
91 91 /**
92 92 * Execute a function when `element` is removed from the DOM.
93 93 *
-1 94 * *Note*: The callback is not executed directly when (or even before) the
-1 95 * element is removed but with a slight delay. So the only way to test this
-1 96 * is to use a timeout in the test.
-1 97 *
94 98 * @param {DOMElement} element
95 99 * @param {function} fn
96 100 * @return {Function()} An unregister function