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/05/14 22:09:24 UTC

svn commit: r944440 - /myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/api/jsf.js

Author: werpu
Date: Fri May 14 20:09:24 2010
New Revision: 944440

URL: http://svn.apache.org/viewvc?rev=944440&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-2716

forgot to commit file



Modified:
    myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/api/jsf.js

Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/api/jsf.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/api/jsf.js?rev=944440&r1=944439&r2=944440&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/api/jsf.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/api/jsf.js Fri May 14 20:09:24 2010
@@ -4,7 +4,7 @@
  *  You may obtain a copy of the License at
  *
  *       http://www.apache.org/licenses/LICENSE-2.0
- *       
+ *
  *  Unless required by applicable law or agreed to in writing, software
  *  distributed under the License is distributed on an "AS IS" BASIS,
  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -49,13 +49,13 @@ if ('undefined' == typeof jsf || null ==
      * we have to set the version here instead of the impl.
      */
     jsf.implversion = 0;
-    
+
     /**
      * @return the current project state emitted by the server side method:
      * javax.faces.application.Application.getProjectStage()
      */
     jsf.getProjectStage = function() {
-        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces.ajax);
+        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core._jsfImpl);
         return impl.getProjectStage();
     };
 
@@ -69,7 +69,7 @@ if ('undefined' == typeof jsf || null ==
      */
     jsf.getViewState = function(formElement) {
         /*we are not allowed to add the impl on a global scope so we have to inline the code*/
-        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces.ajax);
+        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core._jsfImpl);
         return impl.getViewState(formElement);
     };
 }
@@ -104,17 +104,17 @@ if ('undefined' == typeof jsf.ajax || nu
 		options = {};
 	}
         /*we are not allowed to add the impl on a global scope so we have to inline the code*/
-        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces.ajax);
+        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core._jsfImpl);
         return impl.request(element, event, options);
     };
 
     jsf.ajax.addOnError = function(/*function*/errorListener) {
-        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces.ajax);
+        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core._jsfImpl);
         return impl.addOnError(errorListener);
     }
 
     jsf.ajax.addOnEvent = function(/*function*/eventListener) {
-        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces.ajax);
+        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core._jsfImpl);
         return impl.addOnEvent(eventListener);
     }
 
@@ -124,7 +124,7 @@ if ('undefined' == typeof jsf.ajax || nu
      * @param context the ajax context!
      */
     jsf.ajax.response = function(/*xhr request object*/request, context) {
-        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces.ajax);
+        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core._jsfImpl);
         return impl.response(request, context);
     };
 }
@@ -143,7 +143,7 @@ if ('undefined' == typeof jsf.util || nu
      *
      */
     jsf.util.chain = function(source, event) {
-        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces.ajax);
+        var impl = myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl", myfaces._impl.core._jsfImpl);
         return impl.chain.apply(jsf.ajax._impl, arguments);
     }
 }