• function

unbind can.Model.unbind


Stop listening for events on a Model class.

can.Model.unbind(eventType, handler)


  1. eventType {String}

    The type of event. It must be "created", "udpated", "destroyed".

  2. handler {function()}

    A callback function that was passed to bind.



The model constructor function.

unbind(eventType, handler) removes a listener attached with can.Model.bind.

var handler = function(ev, createdTask){

Task.bind("created", handler)
Task.unbind("created", handler)

You have to pass the same function to unbind that you passed to bind.