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 2012/10/09 13:32:53 UTC
svn commit: r1395974 -
/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js
Author: werpu
Date: Tue Oct 9 11:32:53 2012
New Revision: 1395974
URL: http://svn.apache.org/viewvc?rev=1395974&view=rev
Log:
https://issues.apache.org/jira/browse/MYFACES-3620
Modified:
myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js
Modified: myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js?rev=1395974&r1=1395973&r2=1395974&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js (original)
+++ myfaces/core/trunk/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js Tue Oct 9 11:32:53 2012
@@ -232,7 +232,10 @@ _MF_SINGLTN(_PFX_CORE + "Impl", _MF_OBJE
/*compliance with Mojarra which automatically adds @this to an execute
* the spec rev 2.0a however states, if none is issued nothing at all should be sent down
*/
- this._transformList(passThrgh, this.P_EXECUTE, options.execute + " @this", form, elementId);
+ if(options.execute.indexOf("@this") == -1) {
+ options.execute = options.execute + " @this";
+ }
+ this._transformList(passThrgh, this.P_EXECUTE, options.execute, form, elementId);
} else {
passThrgh[this.P_EXECUTE] = elementId;
}
@@ -375,6 +378,7 @@ _MF_SINGLTN(_PFX_CORE + "Impl", _MF_OBJE
//it uses an array and an index to position all elements correctly
//the offset variable is there to prevent 0 which results in a javascript
//false
+ srcStr = _Lang.trim(srcStr);
var offset = 1,
vals = (srcStr) ? srcStr.split(/\s+/) : [],
idIdx = (vals.length) ? _Lang.arrToMap(vals, offset) : {},