releaseCapture()

Releases mouse capture.

Syntax

behavior.releaseCapture();

Example

var mybehavior = jsb.behavior.extend({
  onmouseup: function() {
    this.endDrag();
  },

  endDrag: function() {
    delete this._dragX;
    delete this._dragY;
    this.releaseCapture();
  }
});

Notes

You will typically release capture on a mouseup event.

See Also