mirror of
https://github.com/codex-team/editor.js
synced 2024-05-23 08:42:25 +02:00
Delete plugins properties from window obj
This commit is contained in:
parent
f9bd88743d
commit
6c91f81229
|
@ -56,6 +56,7 @@ var code = (function(code_plugin) {
|
||||||
code_plugin.destroy = function () {
|
code_plugin.destroy = function () {
|
||||||
|
|
||||||
code = null;
|
code = null;
|
||||||
|
delete window.code;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -206,6 +206,7 @@ var embed = function(embed_plugin){
|
||||||
embed_plugin.destroy = function () {
|
embed_plugin.destroy = function () {
|
||||||
|
|
||||||
embed = null;
|
embed = null;
|
||||||
|
delete window.embed;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -160,8 +160,9 @@ var header = (function(header_plugin) {
|
||||||
header_plugin.destroy = function () {
|
header_plugin.destroy = function () {
|
||||||
|
|
||||||
header = null;
|
header = null;
|
||||||
|
delete window.header;
|
||||||
|
|
||||||
}
|
};
|
||||||
|
|
||||||
return header_plugin;
|
return header_plugin;
|
||||||
|
|
||||||
|
|
|
@ -693,6 +693,7 @@ var image = (function(image_plugin) {
|
||||||
image_plugin.destroy = function () {
|
image_plugin.destroy = function () {
|
||||||
|
|
||||||
image = null;
|
image = null;
|
||||||
|
delete window.image;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -144,6 +144,7 @@ var instagram = (function(instagram_plugin) {
|
||||||
instagram_plugin.destroy = function () {
|
instagram_plugin.destroy = function () {
|
||||||
|
|
||||||
instagram = null;
|
instagram = null;
|
||||||
|
delete window.instagram;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -342,6 +342,7 @@ var link = (function(link_plugin) {
|
||||||
link_plugin.destroy = function () {
|
link_plugin.destroy = function () {
|
||||||
|
|
||||||
link = null;
|
link = null;
|
||||||
|
delete window.link;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -220,7 +220,8 @@ var list = (function(list_plugin) {
|
||||||
|
|
||||||
list_plugin.destroy = function () {
|
list_plugin.destroy = function () {
|
||||||
|
|
||||||
list = null;
|
list = null
|
||||||
|
delete window.list;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@ var paragraph = (function(paragraph_plugin) {
|
||||||
paragraph_plugin.destroy = function () {
|
paragraph_plugin.destroy = function () {
|
||||||
|
|
||||||
paragraph = null;
|
paragraph = null;
|
||||||
|
delete window.paragraph;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,7 @@ var paste = function(paste_plugin) {
|
||||||
paste_plugin.destroy = function () {
|
paste_plugin.destroy = function () {
|
||||||
|
|
||||||
paste = null;
|
paste = null;
|
||||||
|
delete window.paste;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -563,6 +563,7 @@ var quote = (function(quote_plugin) {
|
||||||
quote_plugin.destroy = function () {
|
quote_plugin.destroy = function () {
|
||||||
|
|
||||||
quote = null;
|
quote = null;
|
||||||
|
delete window.quote;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -259,6 +259,7 @@ var twitter = (function(twitter_plugin) {
|
||||||
twitter_plugin.destroy = function () {
|
twitter_plugin.destroy = function () {
|
||||||
|
|
||||||
twitter = null;
|
twitter = null;
|
||||||
|
delete window.twitter;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue