Author: abelevich
Date: 2010-03-10 13:07:48 -0500 (Wed, 10 Mar 2010)
New Revision: 16552
Modified:
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js
Log:
apply baseComponent strategy
Modified:
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js
===================================================================
---
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js 2010-03-10
18:06:44 UTC (rev 16551)
+++
root/ui-sandbox/trunk/components/datascroller/ui/src/main/resources/META-INF/resources/script/datascroller.js 2010-03-10
18:07:48 UTC (rev 16552)
@@ -3,18 +3,27 @@
richfaces.ui = richfaces.ui || {};
richfaces.ui.DataScroller = function(id, options) {
- this.id = id;
+ $super.constructor.call(this);
+
+ this.id = id;
this.options = options;
+
+ RichFaces.Event.bindById(this.id, 'rich:datascroller:onscroll',
this.submitFunction, this);
+
this.init(options);
};
+
+
+
+ var $super = richfaces.BaseComponent.extend(richfaces.BaseComponent,
richfaces.ui.DataScroller);
+
+ jQuery.extend(richfaces.ui.DataScroller.prototype, (function (options) {
+
- jQuery.extend(richfaces.ui.DataScroller.prototype, ( function () {
-
return {
- init: function(options) {
- RichFaces.Event.bindById(this.id, 'rich:datascroller:onscroll',
this.submitFunction, this);
- },
+ name: "RichFaces.ui.DataScroller",
+
submitFunction: function(event) {
alert(test);
},