mithril-vndb/test
Demian Ferreiro 3e51c8c2ff Remove unloaders when root element is removed
When a controller calls preventDefault on its onunload method, it prevents the current root element from being unmounted via a route change. But it does not prevent it from being unmounted via m.mount(root, null). In that case, the root element is unmounted, but any unloaders that it had keep hanging on the `unloaders` array, and that prevented any future m.mount(root, component) calls from succeeding. This is what was happening on the pending route() tests.

The fix is pretty simple: just reset the `unloaders` array when removing the root element, just like it's done when no unloader calls preventDefault.

Also, 2 of the 4 pending tests were removed because they were identical to the other 2.
2016-06-18 07:41:49 -03:00
..
.eslintrc Convert tests to Mocha/Chai/Sinon and lint them. 2015-10-31 11:07:22 -04:00
index.html Merge pull request #907 from isiahmeadows/update 2015-12-20 16:40:08 -05:00
input-cursor.html v0.2.2-rc.1 2015-12-20 09:14:28 -05:00
isolation-test.html Lint old tests 2016-01-22 14:07:25 -05:00
isolation-test.js Lint old tests 2016-01-22 14:07:25 -05:00
mithril.deferred.js Remove an erroneous npm-debug.log, disable failing test 2016-03-02 13:55:48 -05:00
mithril.js fix valueless attributes #1093 2016-06-06 09:21:58 -04:00
mithril.mount.js Fix onunload test case 2015-12-29 09:58:26 +07:00
mithril.prop.js Unfix test 2015-11-20 02:53:28 -05:00
mithril.redraw.js v0.2.2-rc.1 2015-12-20 09:14:28 -05:00
mithril.render.js Add test for select value render edge case 2016-06-13 02:38:51 -03:00
mithril.request.js #1039 ignore url interpolations without mapped values 2016-05-06 11:49:00 -04:00
mithril.route.buildQueryString.js Merge 'origin/patch-2', remove trailing commas 2015-11-25 22:45:45 -05:00
mithril.route.js Remove unloaders when root element is removed 2016-06-18 07:41:49 -03:00
mithril.route.parseQueryString.js Merge 'origin/patch-2', remove trailing commas 2015-11-25 22:45:45 -05:00
mithril.startComputation.js Merge 'origin/patch-2', remove trailing commas 2015-11-25 22:45:45 -05:00
mithril.sync.js Convert tests to Mocha/Chai/Sinon and lint them. 2015-10-31 11:07:22 -04:00
mithril.trust.js Add test for replaceScriptNodes 2016-05-19 09:53:09 -07:00
mithril.withAttr.js Convert tests to Mocha/Chai/Sinon and lint them. 2015-10-31 11:07:22 -04:00
svg.html v0.2.2-rc.1 2015-12-20 09:14:28 -05:00