Author: pyaschenko
Date: 2010-04-26 12:45:15 -0400 (Mon, 26 Apr 2010)
New Revision: 16811
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
Log:
base component js docs update
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
===================================================================
---
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-04-26
14:59:30 UTC (rev 16810)
+++
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-04-26
16:45:15 UTC (rev 16811)
@@ -102,7 +102,15 @@
return "#"+this.id;
},
- //TODO: add jsdocs and qunit tests
+ /**
+ * Attach component object to DOM element by component id, DOM element or
jQuery object and returns the element
+ *
+ * @function
+ * @name RichFaces.BaseComponent#attachToDom
+ * @param {string|DOMElement|jQuery} source - component id, DOM element or
DOM elements wrapped by jQuery
+ *
+ * @return {DOMElement}
+ * */
attachToDom: function(source) {
var element = richfaces.getDomElement(source);
if (element) {
Show replies by date