Browse Source

Clean blocks view cache on render

pull/187/head
Artur Arseniev 9 years ago
parent
commit
25d0f6c5e3
  1. 4
      dist/grapes.min.js
  2. 2
      package.json
  3. 5
      src/block_manager/view/BlocksView.js

4
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.8.5",
"version": "0.8.6",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

5
src/block_manager/view/BlocksView.js

@ -161,6 +161,9 @@ module.exports = Backbone.View.extend({
render() {
var ppfx = this.ppfx;
var frag = document.createDocumentFragment();
this.catsEl = null;
this.blocksEl = null;
this.renderedCategories = [];
this.el.innerHTML = `
<div class="${this.catsClass}"></div>
<div class="${this.noCatClass}">
@ -173,7 +176,7 @@ module.exports = Backbone.View.extend({
}, this);
this.append(frag);
this.$el.addClass(this.blockContClass + 's');
this.$el.addClass(this.blockContClass + 's')
return this;
},

Loading…
Cancel
Save