Browse files

Switch to newer //# sourceURL syntax.

  • Loading branch information...
1 parent 716be65 commit 1ef97117d0c57b7dd43a4310031b8f7bd70a9cd3 @unscriptable unscriptable committed Feb 12, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/curl/loader/cjsm11.js
View
2 src/curl/loader/cjsm11.js
@@ -43,7 +43,7 @@ define(/*=='curl/loader/cjsm11',==*/ ['../plugin/_fetchText', 'curl/_privileged'
checkToAddJsExt = priv['core'].checkToAddJsExt;
function wrapSource (source, resourceId, fullUrl) {
- var sourceUrl = fullUrl ? '/*\n////@ sourceURL=' + fullUrl.replace(/\s/g, '%20') + '\n*/' : '';
+ var sourceUrl = fullUrl ? '////# sourceURL=' + fullUrl.replace(/\s/g, '%20') + '' : '';
return "define('" + resourceId + "'," +
"['require','exports','module'],function(require,exports,module,define){" +
source + "\n});\n" + sourceUrl + "\n";

0 comments on commit 1ef9711

Please sign in to comment.