Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "HTMLSnippet",
"version": "3.9.5",
"version": "3.9.6",
"description": "",
"license": "",
"author": "",
Expand Down
9 changes: 5 additions & 4 deletions src/HTMLSnippet/widget/HTMLSnippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ define([
(function (snippetCode) {
/**
* user's are get used to or might expect to have jQuery available globally
* and they will write their code according to that, and since we, in this widget, don't expose
* jQuery globally, we'll check user's code snippet if there is any attempt to access jQuery
* from the global scope ( window ).
* and they will write their code according to that, and since we, in this widget, don't expose
* jQuery globally, we'll check user's code snippet if there is any attempt to access jQuery
* from the global scope ( window ).
*/
var jqueryIdRegex1 = /window.\jQuery/g;
var jqueryIdRegex2 = /window.\$/g;
Expand All @@ -188,7 +188,8 @@ define([
"console.debug('your code snippet is evaluated and executed against JQuery version:'+ this.jquery.fn.jquery);";
eval(snippetCode);
}).call({
jquery: jQuery // pass JQuery as the context of the immediate function which will wrap the code snippet
jquery: jQuery, // pass JQuery as the context of the immediate function which will wrap the code snippet
widget: this // pass the HTMLSnippet widget context itself, so the code could use listen/addOnDestroy
}, this.contents); // pass the code snippet as an arg
} catch (error) {
this._handleError(error);
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="HTMLSnippet" version="3.9.5" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="HTMLSnippet" version="3.9.6" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="HTMLSnippet/HTMLSnippet.xml"/>
<widgetFile path="HTMLSnippet/HTMLSnippetContext.xml"/>
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const widgetVersion = package.version;
filename: `${widgetName}/widget/[name].js`,
chunkFilename: `${widgetName}/widget/${widgetName}[id].js`,
libraryTarget: "amd",
publicPath: "widgets/"
publicPath: "/widgets/"
},
devtool: false,
mode: "production",
Expand Down