Skip to content

flbeta_function_on

Wesley de Groot edited this page Nov 5, 2017 · 33 revisions
                     _          
                    (_)         
                     _    _____ 
                    | |  / ____|
                    | |  | (___ 
                _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                     v0.1.0 Beta

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%20(Beta))
Clone this wiki locally