Author: nbelaevski
Date: 2010-11-02 14:58:49 -0400 (Tue, 02 Nov 2010)
New Revision: 19900
Modified:
trunk/ui/misc/ui/src/main/resources/META-INF/resources/org.richfaces/component-control.js
Log:
https://jira.jboss.org/browse/RF-9530
Modified:
trunk/ui/misc/ui/src/main/resources/META-INF/resources/org.richfaces/component-control.js
===================================================================
---
trunk/ui/misc/ui/src/main/resources/META-INF/resources/org.richfaces/component-control.js 2010-11-02
18:15:34 UTC (rev 19899)
+++
trunk/ui/misc/ui/src/main/resources/META-INF/resources/org.richfaces/component-control.js 2010-11-02
18:58:49 UTC (rev 19900)
@@ -28,8 +28,9 @@
invokeOnComponent : function(event, target, callback) {
if(callback && typeof callback == 'function') {
$(target).each(function() {
- if (this.richfaces && this.richfaces.component) {
- callback(event, this.richfaces.component);
+ var component = richfaces.$(this);
+ if (component) {
+ callback(event, component);
}
});
}