unbind
can.Model.unbind
Stop listening for events on a Model class.
can.Model.unbind(eventType, handler)
Parameters
-
eventType
{String}
The type of event. It must be
"created"
,"updated"
,"destroyed"
. -
handler
{function()}
A callback function that was passed to
bind
.
Returns
{can.Model}
The model constructor function.
unbind(eventType, handler)
removes a listener attached with bind.You have to pass the same function to
unbind
that you passed tobind
.