# mixen-view-eventjanitor

> Cleanup events in Backbone subviews

Latest version **0.1.0** (published 2013-08-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install mixen-view-eventjanitor
pnpm add mixen-view-eventjanitor
yarn add mixen-view-eventjanitor
bun add mixen-view-eventjanitor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-08-29 |
| First published | 2013-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zack Bloom |
| Maintainers | hs |
| Keywords | mixen, backbone |

## Links

- npm: https://www.npmjs.com/package/mixen-view-eventjanitor
- Repository: git@github.com:HubSpot/mixen-view-eventjanitor
- npm.io page: https://npm.io/package/mixen-view-eventjanitor

## Dependencies (2)

- [mixen](https://npm.io/package/mixen.md) ~0.4.7
- [coffee-script](https://npm.io/package/coffee-script.md) ~1.6.3

## Recent versions

- 0.1.0 (latest) — 2013-08-29

## README

Mixen View Event Janitor
======================== 

A class which you can use with [Mixen](https://github.com/HubSpot/Mixen) to cleanup events
when you destroy Backbone subviews.

Usage
-----

```coffeescript
class MyView extends Mixen(EventJanitor, Backbone.View)
  render: ->
    subview = new OtherAwesomeView()

    @rememberView subview
```

When `undelegateEvents` gets called on the view, it will call `stopListening` on all the
registered subviews.

---
_Source: https://npm.io/package/mixen-view-eventjanitor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
