Author: Alex.Kolonitsky
Date: 2010-07-19 09:33:10 -0400 (Mon, 19 Jul 2010)
New Revision: 18147
Modified:
root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
Log:
rename blank function
remove unnessesary code
Modified:
root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js
===================================================================
---
root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-07-19
13:32:31 UTC (rev 18146)
+++
root/core/trunk/impl/src/main/resources/META-INF/resources/richfaces-base-component.js 2010-07-19
13:33:10 UTC (rev 18147)
@@ -5,7 +5,7 @@
(function ($, richfaces, params) {
- richfaces.blankFunction = function (){}; //TODO: add it to global library
+ richfaces.BLANK_FUNCTION = function (){}; //TODO: add it to global library
/**
* @class Base class for all components.
@@ -56,7 +56,7 @@
var extend = function (parent, child, h) {
h = h || {};
- var F = richfaces.blankFunction;
+ var F = richfaces.BLANK_FUNCTION;
F.prototype = parent.prototype;
child.prototype = new F();
child.prototype.constructor = child;
@@ -127,9 +127,7 @@
*
* */
richfaces.BaseComponent.extendClass = function (methods) {
- var EMPTY_FUNC = function () {};
-
- var DerivedClass = methods.init || EMPTY_FUNC;
+ var DerivedClass = methods.init || richfaces.BLANK_FUNCTION;
var SupperClass = this;
SupperClass.extend(DerivedClass);
Show replies by date