# Events

## AV. Events

#### new Events()

Source:
  - event.js, line 27

##### Example

    var object = {};
    _.extend(object, AV.Events);
    object.on('expand', function(){ alert('expanded'); });
    object.trigger('expand');</pre></p>

### Methods

#### (static) bind()

Source:
  - event.js, line 146

#### (static) off()

Source:
  - event.js, line 63

Remove one or many callbacks. If `context` is null, removes all callbacks with that function. If `callback` is null, removes all callbacks for the event. If `events` is null, removes all bound callbacks for all events.

#### (static) on()

Source:
  - event.js, line 32

Bind one or more space separated events, `events`, to a `callback` function. Passing `"all"` will bind the callback to all events fired.

#### (static) trigger()

Source:
  - event.js, line 108

Trigger one or many events, firing all bound callbacks. Callbacks are passed the same arguments as `trigger` is, apart from the event name (unless you're listening on `"all"`, which will cause your callback to receive the true name of the event as the first argument).

#### (static) unbind()

Source:
  - event.js, line 151