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 13:55:34 UTC
svn commit: r952196 -
/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js
Author: werpu
Date: Mon Jun 7 11:55:33 2010
New Revision: 952196
URL: http://svn.apache.org/viewvc?rev=952196&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2742
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=952196&r1=952195&r2=952196&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 11:55:33 2010
@@ -209,11 +209,18 @@ if (!myfaces._impl.core._Runtime) {
return false;
}
+
//initial condition root set element not set or null
//equals to element exists
if (!subNms) {
return true;
}
+
+ //special condition subnamespace exists as full blown key with . instead of function map
+ if('undefined' != typeof root[subNms]) {
+ return true;
+ }
+
//crossported from the dojo toolkit
// summary: determine if an object supports a given method
// description: useful for longer api chains where you have to test each object in the chain