Skip to content

Commit f7367f5

Browse files
committed
Bump v0.12.60
1 parent 8f68c91 commit f7367f5

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

dist/grapes.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4809,12 +4809,12 @@ module.exports = Backbone.Model.extend(_Styleable2.default).extend({
48094809
var config = this.sm.config || {};
48104810
var tagVarStart = escapeRegExp(config.tagVarStart || '{[ ');
48114811
var tagVarEnd = escapeRegExp(config.tagVarEnd || ' ]}');
4812-
var reg = new RegExp(tagVarStart + '(.*)' + tagVarEnd, 'g');
4812+
var reg = new RegExp(tagVarStart + '([\\w\\d-]*)' + tagVarEnd, 'g');
48134813
scr = scr.replace(reg, function (match, v) {
48144814
// If at least one match is found I have to track this change for a
48154815
// better optimization inside JS generator
48164816
_this4.scriptUpdated();
4817-
return _this4.attributes[v];
4817+
return _this4.attributes[v] || '';
48184818
});
48194819

48204820
return scr;
@@ -23266,7 +23266,7 @@ module.exports = function () {
2326623266
plugins: plugins,
2326723267

2326823268
// Will be replaced on build
23269-
version: '0.12.59',
23269+
version: '0.12.60',
2327023270

2327123271
/**
2327223272
* Initializes an editor based on passed options
@@ -44311,7 +44311,7 @@ module.exports = Backbone.View.extend({
4431144311
// In editor, I make use of setTimeout as during the append process of elements
4431244312
// those will not be available immediatly, therefore 'item' variable
4431344313
var script = document.createElement('script');
44314-
script.innerText = '\n setTimeout(function() {\n var item = document.getElementById(\'' + id + '\');\n if (!item) return;\n (function(){' + model.getScriptString() + '}.bind(item))()\n }, 1);';
44314+
script.innerText = '\n setTimeout(function() {\n var item = document.getElementById(\'' + id + '\');\n if (!item) return;\n (function(){\n ' + model.getScriptString() + ';\n }.bind(item))()\n }, 1);';
4431544315
view.scriptContainer.get(0).appendChild(script);
4431644316
},
4431744317

dist/grapes.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grapesjs",
33
"description": "Free and Open Source Web Builder Framework",
4-
"version": "0.12.59",
4+
"version": "0.12.60",
55
"author": "Artur Arseniev",
66
"license": "BSD-3-Clause",
77
"homepage": "http://grapesjs.com",

0 commit comments

Comments
 (0)