Issue #3274Opened February 17, 2021by mig84470 reactions

Block.js `initialize` function is not doing anything

Question

https://github.com/artf/grapesjs/blob/3199d76ba5677229e90f13ef48fb91e9bfe1e90d/src/block_manager/model/Block.js#L23

As far as I can see, the code in the initialize function tried to set the category as a new Category object but it currently doesn't do anything. And since the category part is taken care by the BlocksView at:

https://github.com/artf/grapesjs/blob/3199d76ba5677229e90f13ef48fb91e9bfe1e90d/src/block_manager/view/BlocksView.js#L129

The initialize function is not needed in Block.js anymore

Answers (1)

artfFebruary 19, 20210 reactions

yeap, seems like an old thing, thanks

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.