Skip to content

Commit

Permalink
Updated jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Erick Acuna committed Jun 26, 2014
1 parent 0ee79af commit d24a9b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/js/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
8 changes: 4 additions & 4 deletions src/js/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d24a9b4

Please sign in to comment.