Author: pyaschenko
Date: 2010-09-29 09:02:16 -0400 (Wed, 29 Sep 2010)
New Revision: 19371
Modified:
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
Log:
small fix: RICH_CONTAINER moved from richfaces-base-component.js to richfaces.js
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-09-29
12:37:23 UTC (rev 19370)
+++
trunk/core/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-09-29
13:02:16 UTC (rev 19371)
@@ -4,8 +4,6 @@
(function ($, richfaces, params) {
-
- var RICH_CONTAINER = "richfaces";
richfaces.blankFunction = function (){}; //TODO: add it to global library
@@ -177,7 +175,7 @@
* @type String
* */
name: "BaseComponent",
-
+
/**
* Method for converting object to string
*
@@ -230,7 +228,7 @@
source = source || this.id;
var element = richfaces.getDomElement(source);
if (element) {
- element[RICH_CONTAINER] = element[RICH_CONTAINER] || {};
+ element[richfaces.RICH_CONTAINER] = element[richfaces.RICH_CONTAINER] || {};
element.richfaces.component = this;
}
return element;
@@ -270,7 +268,7 @@
eventObj.initEvent( eventType, true, false );
}
}
- eventObj[RICH_CONTAINER] = {component:this, data: data};
+ eventObj[richfaces.RICH_CONTAINER] = {component:this, data: data};
var eventHandler = this.options['on'+eventType];
Modified: trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js
===================================================================
--- trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-09-29 12:37:23
UTC (rev 19370)
+++ trunk/core/impl/src/main/resources/META-INF/resources/richfaces.js 2010-09-29 13:02:16
UTC (rev 19371)
@@ -13,6 +13,8 @@
(function(jQuery, richfaces) {
+ richfaces.RICH_CONTAINER = "richfaces";
+
// get DOM element by id or DOM element or jQuery object
richfaces.getDomElement = function (source) {
var type = typeof source;
Show replies by date