Files
zulip/static/js
Pragati Agrawal e79c28e13c stream_edit: Use e.currentTarget instead of e.target.
Here we have attached our handler to `.sub_setting_checkbox` so
`e.currentTarget` will return element with class `.sub_setting_checkbox`
but `e.target` will return exactly which element we have clicked, which
could be a child of `.sub_setting_checkbox`. So instead of,

```
$(e.target).closest(".sub_setting_checkbox")
```

we can use

```
$(e.currentTarget)
```

which is more clean and intuitive.

- `e.currentTarget` is less popular which could be the reason behind using
  two step hack to get the targetted element.
2020-02-04 13:53:27 -08:00
..
2019-12-30 09:50:22 -08:00
2020-02-04 12:22:03 -08:00
2019-10-25 13:51:21 -07:00
2020-02-04 12:22:03 -08:00
2020-01-14 12:39:17 -08:00
2020-02-04 12:22:03 -08:00
2020-01-30 13:11:32 -08:00
2020-02-04 12:22:03 -08:00
2019-10-25 13:51:21 -07:00
2020-02-04 12:22:03 -08:00
2020-02-04 12:22:03 -08:00
2020-01-15 18:01:59 -08:00
2019-10-25 13:51:21 -07:00
2020-01-30 13:11:32 -08:00