About Pi Downloads Documentation Plugins Developer Forum Issues

pi.element.event.removeListener

Summary

Allows the removal of event listeners from the element.

Syntax

element.event.removeListener(type,listener,useCapture);

Example

	var hello = function(){
		alert("Hello World!");
		MyButton.event.removeListener('click',hello);
	};
	var MyButton = new pi.element("button").event.addListener("click",hello);

See Also