Author: nbelaevski
Date: 2008-03-11 22:45:45 -0400 (Tue, 11 Mar 2008)
New Revision: 6730
Modified:
trunk/ui/componentControl/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js
Log:
http://jira.jboss.com/jira/browse/RF-2424
Modified:
trunk/ui/componentControl/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js
===================================================================
---
trunk/ui/componentControl/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js 2008-03-12
01:55:27 UTC (rev 6729)
+++
trunk/ui/componentControl/src/main/resources/org/richfaces/renderkit/html/script/controlUtils.js 2008-03-12
02:45:45 UTC (rev 6730)
@@ -41,7 +41,12 @@
Richfaces.componentControl.performOperation = function( cevent, forAttr, operation,
params, disableDefault) {
Richfaces.componentControl.eachComponent(forAttr, function(component) {
- component[operation](cevent, params());
+ var paramsValue = params;
+ if (typeof params == "function") {
+ paramsValue = params();
+ }
+
+ component[operation](cevent, paramsValue);
});
if (disableDefault) {
Event.stop(cevent);