mirror of
https://github.com/videojs/video.js.git
synced 2025-03-19 21:28:23 +02:00
Updated jsdoc
This commit is contained in:
parent
0ee79afdfe
commit
d24a9b48ac
src/js
@ -563,11 +563,11 @@ vjs.Component.prototype.one = function(type, fn) {
|
||||
* Trigger an event on an element
|
||||
*
|
||||
* myComponent.trigger('eventName');
|
||||
* myComponent.trigger({'type':'eventName', 'value':'eventValue'});
|
||||
* myComponent.trigger({'type':'eventName'});
|
||||
*
|
||||
* @param {Object} event either a string (the event type)
|
||||
* to trigger or an event object
|
||||
* with a type attribute.
|
||||
* @param {Event|Object|String} event either a string (the event type)
|
||||
* to trigger or an event object
|
||||
* with a type attribute.
|
||||
* @return {vjs.Component} self
|
||||
*/
|
||||
vjs.Component.prototype.trigger = function(event){
|
||||
|
@ -264,10 +264,10 @@ vjs.fixEvent = function(event) {
|
||||
|
||||
/**
|
||||
* Trigger an event for an element
|
||||
* @param {Element|Object} elem Element to trigger an event on
|
||||
* @param {Object} event either a string (the event type)
|
||||
* to trigger or an event object with a
|
||||
* type attribute.
|
||||
* @param {Element|Object} elem Element to trigger an event on
|
||||
* @param {Event|Object|String} event either a string (the event type)
|
||||
* to trigger or an event object with a
|
||||
* type attribute.
|
||||
* @private
|
||||
*/
|
||||
vjs.trigger = function(elem, event) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user