Author: pyaschenko
Date: 2010-12-03 10:24:19 -0500 (Fri, 03 Dec 2010)
New Revision: 20361
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
Log:
http://jira.jboss.com/jira/browse/RF-9858
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
===================================================================
---
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-12-03
15:23:12 UTC (rev 20360)
+++
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-12-03
15:24:19 UTC (rev 20361)
@@ -64,7 +64,7 @@
* */
richfaces.BaseComponent = function(componentId) {
this.id = componentId;
- this.options = {};
+ this.options = this.options || {};
};
var $p = {};
@@ -133,7 +133,7 @@
* __overrideMethod : function () {
* // if you need to use method from parent class use link to parent
prototype
* // like in previous solution with extend method
- * this.$super.__overrideMethod.call(this, ...params...);
+ * $super.__overrideMethod.call(this, ...params...);
*
* //...
* }
@@ -159,7 +159,6 @@
SupperClass.extend(DerivedClass);
DerivedClass.extendClass = SupperClass.extendClass;
- DerivedClass.prototype.$super = SupperClass.prototype;
$.extend(DerivedClass.prototype, methods);
@@ -228,11 +227,8 @@
source = source || this.id;
var element = richfaces.getDomElement(source);
if (element) {
- element[richfaces.RICH_CONTAINER] = $.extend(element[richfaces.RICH_CONTAINER] ||
{},
- {
- component:this
- }
- );
+ var container = element[richfaces.RICH_CONTAINER] =
element[richfaces.RICH_CONTAINER] || {};
+ container.component = this;
}
return element;
},
@@ -297,7 +293,6 @@
*
* */
destroy: function() {
- this.detach();
}
};
})(params));