Author: pyaschenko
Date: 2010-01-20 05:23:29 -0500 (Wed, 20 Jan 2010)
New Revision: 16338
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-event.js
Log:
RichFaces.Event update
Modified:
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-event.js
===================================================================
---
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-event.js 2010-01-20
06:41:52 UTC (rev 16337)
+++
root/framework/trunk/impl/src/main/resources/META-INF/resources/richfaces-event.js 2010-01-20
10:23:29 UTC (rev 16338)
@@ -15,7 +15,7 @@
bind : function(selector, type, fn, data) {
// type: namespace can be used, like onclick.rf.conponentName
var f = function (e){
- e.data.fn.call(e.data.component, e, this);
+ e.data.fn.call(e.data.component||this, e, this);
};
basefw(selector).bind(type, {component: data, fn:fn}, f);
return f;
@@ -23,7 +23,7 @@
bindOne: function(selector, type, fn, data) {
// type: namespace can be used, like onclick.rf.conponentName
var f = function (e){
- e.data.fn.call(e.data.component, e, this);
+ e.data.fn.call(e.data.component||this, e, this);
};
basefw(selector).one(type, {component: data, fn:fn}, f);
return f;
@@ -59,7 +59,7 @@
/*
fn : function (eventObject, element) {
- this; // object passed as data to bind function
+ this; // object passed as data to bind function or dom element if no data
element; // dom element
}
Show replies by date