You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2010/06/07 16:41:38 UTC
svn commit: r952252 -
/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js
Author: werpu
Date: Mon Jun 7 14:41:38 2010
New Revision: 952252
URL: http://svn.apache.org/viewvc?rev=952252&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2745 first small patch, but there are other issues where htmlunit fails
I am nailing them down at the moment
Modified:
myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js
Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js?rev=952252&r1=952251&r2=952252&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js Mon Jun 7 14:41:38 2010
@@ -506,7 +506,7 @@ if (!myfaces._impl.core._Runtime) {
extendCls = extendCls._mfProto;
}
- if (extendCls) {
+ if ('undefined' != typeof extendCls && null != extendCls) {
newCls.prototype = new extendCls;
newCls.prototype.constructor = newCls;
newCls.prototype._parentCls = extendCls.prototype;
@@ -564,8 +564,8 @@ if (!myfaces._impl.core._Runtime) {
var clazz = ooFunc(newCls + "._mfProto", delegateObj, protoFuncs, nmsFuncs);
if (clazz != null) {
_this.applyToGlobalNamespace(newCls, new clazz());
+ _this.fetchNamespace(newCls)["_mfProto"] = clazz;
}
- _this.fetchNamespace(newCls)["_mfProto"] = clazz;
};
//internal class namespace reservation depending on the type (string or function)