Skip to content

Commit f137352

Browse files
committed
Merge pull request #4 from Andries-Smit/master
Add source URL
2 parents b373c8d + 3ddd302 commit f137352

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

src/HTMLSnippet/widget/HTMLSnippet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ require([
6161
else
6262
{
6363
try {
64-
eval(this.contents);
64+
eval(this.contents + "\r\n//# sourceURL="+this.id+".js");
6565
} catch (e) {
6666
domConstruct.place("Error while evaluating JavaScript: " + e, this.domNode, "only");
6767
}

test/[Test] HTML JS Snippet.mpr

4 KB
Binary file not shown.

test/widgets/HTMLSnippet.mpk

559 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)