Skip to content

function_on

Wesley de Groot edited this page Oct 30, 2015 · 30 revisions
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                    v0.0.7 Final

Function on

_('.wrapper').on(myEvent, callback)



On ... event

Parameter list

Type @var Description Required
object object Wrapper Required
string myEvent event Required
function|bool callback Function to use|remove Required

Example:

_('.wrapper').html('x').on('mousemove', function () { console.log('moved'); })

_('.wrapper').html('x').on('mousemove', true); // Remove.

_('.wrapper').on('mousemove', function () { console.log('moved'); })

_('.wrapper').on('mousemove', true); // Remove.


Returns:

null




[Back to function list](https://github.com/wesdegroot/_.js/wiki/Function%20List)

Clone this wiki locally