Browse Source

Merge branch 'dev' of https://github.com/artf/grapesjs into dev

pull/1775/head
Artur Arseniev 7 years ago
parent
commit
d8eb094d9e
  1. 2
      src/code_manager/model/JsGenerator.js

2
src/code_manager/model/JsGenerator.js

@ -13,7 +13,7 @@ module.exports = Backbone.Model.extend({
// If the component has scripts we need to expose his ID
var attr = model.get('attributes');
attr = extend({}, attr, { id });
model.set('attributes', attr);
model.set('attributes', attr, { silent: 1 });
var scrStr = model.getScriptString();
// If the script was updated, I'll put its code in a separate container

Loading…
Cancel
Save