Javi Martín
5ad41d9ac7
Add a break to avoid case fallthrough
...
In JavaScript, when there isn't a `break` or `return` statement inside a
`switch` case, the next case will be executed as well.
That wasn't a problem here because CoffeeScript automatically inserts a
`return` statement in this specific situation. However, since we don't
want to return the result of the `hide()` operation, it might be easy to
accidentally remove the `return` statement, causing the code to break.
I've added a test for the scenario where neither `break` nor `return`
statements are present, so we don't run into this error.
2019-09-11 02:05:04 +02:00
..
2019-03-26 16:45:48 +01:00
2018-09-26 12:34:16 +02:00
2019-09-11 02:05:04 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 02:05:04 +02:00
2015-07-30 12:55:45 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-06-12 18:03:53 +02:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2017-01-16 19:06:06 +01:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-09-11 01:56:27 +02:00
2019-05-22 12:42:00 +02:00
2019-09-11 01:56:27 +02:00
2019-07-01 15:03:48 +02:00
2019-03-06 11:41:21 +01:00
2019-09-11 01:56:27 +02:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-09-11 01:56:27 +02:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-06-12 10:17:31 +02:00
2018-07-20 18:42:33 -04:00
2015-08-24 18:35:59 +02:00
2015-08-24 18:45:22 +02:00
2018-07-02 18:19:08 +02:00
2015-09-13 14:39:38 +02:00
2019-09-11 02:05:04 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-03-21 14:51:17 +01:00
2017-06-21 13:10:40 +02:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-03-19 18:14:57 +01:00
2019-03-06 11:41:21 +01:00
2019-09-11 01:56:27 +02:00
2019-03-15 09:26:00 +01:00
2019-09-11 01:56:27 +02:00
2019-06-27 09:19:36 +02:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-03-06 11:41:21 +01:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00
2019-09-11 01:56:27 +02:00