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 2014/11/28 08:55:07 UTC

svn commit: r1642267 - /myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js

Author: werpu
Date: Fri Nov 28 07:55:06 2014
New Revision: 1642267

URL: http://svn.apache.org/r1642267
Log:
https://issues.apache.org/jira/browse/MYFACES-3943

Modified:
    myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js

Modified: myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js?rev=1642267&r1=1642266&r2=1642267&view=diff
==============================================================================
--- myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js (original)
+++ myfaces/core/branches/2.1.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/_Runtime.js Fri Nov 28 07:55:06 2014
@@ -412,12 +412,15 @@ if (!myfaces._impl.core._Runtime) {
                     //we can achieve that with a small timeout, the timeout
                     //triggers after the processing is done!
                     if (!defer) {
-                        _T.globalEval(xhr.responseText.replace("\n", "\r\n") + "\r\n//@ sourceURL=" + src);
+                        //we moved the sourceurl notation to # instead of @ because ie does not cover it correctly
+                        //newer browsers understand # including ie since windows 8.1
+                        //see http://updates.html5rocks.com/2013/06/sourceMappingURL-and-sourceURL-syntax-changed
+                        _T.globalEval(xhr.responseText.replace("\n", "\r\n") + "\r\n//# sourceURL=" + src);
                     } else {
                         //TODO not ideal we maybe ought to move to something else here
                         //but since it is not in use yet, it is ok
                         setTimeout(function() {
-                            _T.globalEval(xhr.responseText + "\r\n//@ sourceURL=" + src);
+                            _T.globalEval(xhr.responseText.replace("\n", "\r\n") + "\r\n//# sourceURL=" + src);
                         }, 1);
                     }
                 } else {