Skip to content

Commit

Permalink
Clean blocks view cache on render
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jun 14, 2017
1 parent b44a05f commit 25d0f6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/grapes.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 4 additions & 1 deletion src/block_manager/view/BlocksView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}">
Expand All @@ -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;
},

Expand Down

0 comments on commit 25d0f6c

Please sign in to comment.