Author: pyaschenko
Date: 2010-12-03 11:30:19 -0500 (Fri, 03 Dec 2010)
New Revision: 20367
Modified:
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/push.js
Log:
http://jira.jboss.com/jira/browse/RF-9858
core components code refactoring
Modified: trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js
===================================================================
--- trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js 2010-12-03
16:16:57 UTC (rev 20366)
+++ trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/log.js 2010-12-03
16:30:19 UTC (rev 20367)
@@ -169,7 +169,7 @@
},
init: function(options) {
- this.$super.constructor.call(this, 'richfaces.log');
+ $super.constructor.call(this, 'richfaces.log');
this.attachToDom();
richfaces.setLog(this);
@@ -200,7 +200,8 @@
}
this.__contentsElement = null;
- this.$super.destroy.call(this);
+ this.detach();
+ $super.destroy.call(this);
},
setLevel: function(level) {
@@ -229,6 +230,8 @@
}
richfaces.HtmlLog = richfaces.BaseComponent.extendClass(logClassMethods);
+ // define super class link
+ var $super = richfaces.HtmlLog.$super;
}(jQuery, RichFaces));
if (typeof jsf != 'undefined') {
Modified: trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/push.js
===================================================================
---
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/push.js 2010-12-03
16:16:57 UTC (rev 20366)
+++
trunk/ui/core/ui/src/main/resources/META-INF/resources/org.richfaces/push.js 2010-12-03
16:30:19 UTC (rev 20367)
@@ -179,7 +179,7 @@
name: COMPONENT_NAME,
init: function (id, options) {
- this.id = id;
+ $super.constructor.call(this, id);
this.attachToDom();
this.__address = options.address;
@@ -231,7 +231,12 @@
this.__unbindErrorHandler();
richfaces.Push.decreaseSubscriptionCounters(this.__address);
+ this.detach();
+ $super.destroy.call(this);
}
});
+ // define super class link
+ var $super = richfaces.ui.Push.$super;
+
}(jsf, window.RichFaces, jQuery));
\ No newline at end of file