Skip to content

function_on

Wesley de Groot edited this page Jul 31, 2018 · 30 revisions
                     _    _____ 
                    | |  / ____|
                    | |  | (___ 
                _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                    v1.0.0 Final

Function on

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



On ... event


🌍 Universal function

This function is for the Command Line Interface and Websites!


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/wdg/_.js/wiki/Function%20List)

Clone this wiki locally