Author: pyaschenko
Date: 2011-04-19 06:33:53 -0400 (Tue, 19 Apr 2011)
New Revision: 22432
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
Log:
https://jira.jboss.org/browse/RF-9645 - RichFaces.BaseComponent.invokeEvent() could not be
moved, JS documentation is added.
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
===================================================================
---
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2011-04-18
21:42:06 UTC (rev 22431)
+++
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2011-04-19
10:33:53 UTC (rev 22432)
@@ -246,10 +246,15 @@
var element = richfaces.getDomElement(source);
element && element[richfaces.RICH_CONTAINER] &&
(element[richfaces.RICH_CONTAINER].component=null);
},
-
- /** TODO: add jsdocs and qunit tests
- *
- */
+
+ /**
+ * Invokes event on on the DOM element
+ * @param eventType event type, e.g. "click"
+ * @param element DOM element object
+ * @param event jQuery Event
+ * @param data additional data used for event handler
+ * @return true if an event is successfully invoked
+ */
invokeEvent: function(eventType, element, event, data) {
var handlerResult, result;
var eventObj = $.extend({}, event, {type: eventType});