# Method Global:ClearItemEvents [-] [+]

Unbinds event handlers for either all of an Item's events, or one type of event.

If `event_type` is `nil`, all the Item's event handlers are cleared.

Otherwise, only event handlers for `event_type` are cleared.

NOTE: this will affect all instances of the Item, not just one. To bind and unbind events to a single Item, tell the Eluna developers to implement that.

## Synopsis

`ClearItemEvents( entry )`

`ClearItemEvents( entry, event_type )`

## Arguments

`number entry`

  The ID of an Item whose handlers will be cleared.

  Valid numbers: integers from 0 to 4,294,967,295.

`number event_type`

  The event whose handlers will be cleared, see Global:RegisterItemEvent.

  Valid numbers: integers from 0 to 4,294,967,295.

## Returns

Nothing.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine