Instances can be declared on the page, created dynamically in JavaScript, event listeners can be attached, etc.
Las instancias pueden declararse en la página, crearse de forma dinámica en JavaScript y tomar receptores de eventos como adjuntos, entre otras posibilidades.
Sometimes it's easier to declaratively add an event to the HTML than to manually write an event listener in JavaScript.
However, in the case of Cordova there is no JavaScript API for adding these lifecycle event listeners.
Sin embargo, en el caso de Cordova, no hay ninguna API de JavaScript para añadir estos escuchas de sucesos de ciclo de vida.
If your input field was created using a JavaScript library such as jQuery, you'll need to use element.addEventListener() to add the change event listener, like this
Si tu campo input ha sido creado usando una librería JavaScript como jQuery, se necesitará usar element.addEventListener() para añadir el manejador de eventos tipo change, como en el ejemplo siguiente
Be careful when you define event listeners. In JavaScript, if you add an event listener for an event, but don't add a function to handle that event, it will prevent any subsequent event listeners from being registered.
After registering your event listener (in this case, a JavaScript function called handleOrientation()), your listener function periodically gets called with updated orientation data.
Después de registrar tu escucha de eventos (en este caso, una función de JavaScript llamada handleOrientation()), la función de escucha se llama de forma periódica con la orientación de datos actualizada.
Click Listeners (V1) and Click Triggers (V2) now use JavaScript event capturing when possible.
Procesadores de clics (versión 1) y Activadores de clics (versión 2) ahora utilizan captura de evento de JavaScript cuando es posible.
These triggers can break if another JavaScript event interrupts the process.
Estos activadores pueden no funcionar si otro evento JavaScript interrumpe el proceso.
An event listener to be called when an error occurs.
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.