mirror of
https://github.com/codex-team/editor.js
synced 2024-05-11 10:57:30 +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 = null;
|
||||
delete window.code;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -206,6 +206,7 @@ var embed = function(embed_plugin){
|
|||
embed_plugin.destroy = function () {
|
||||
|
||||
embed = null;
|
||||
delete window.embed;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -160,8 +160,9 @@ var header = (function(header_plugin) {
|
|||
header_plugin.destroy = function () {
|
||||
|
||||
header = null;
|
||||
delete window.header;
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
return header_plugin;
|
||||
|
||||
|
|
|
@ -693,6 +693,7 @@ var image = (function(image_plugin) {
|
|||
image_plugin.destroy = function () {
|
||||
|
||||
image = null;
|
||||
delete window.image;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -144,6 +144,7 @@ var instagram = (function(instagram_plugin) {
|
|||
instagram_plugin.destroy = function () {
|
||||
|
||||
instagram = null;
|
||||
delete window.instagram;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -342,6 +342,7 @@ var link = (function(link_plugin) {
|
|||
link_plugin.destroy = function () {
|
||||
|
||||
link = null;
|
||||
delete window.link;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -220,7 +220,8 @@ var list = (function(list_plugin) {
|
|||
|
||||
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 = null;
|
||||
delete window.paragraph;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ var paste = function(paste_plugin) {
|
|||
paste_plugin.destroy = function () {
|
||||
|
||||
paste = null;
|
||||
delete window.paste;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -563,6 +563,7 @@ var quote = (function(quote_plugin) {
|
|||
quote_plugin.destroy = function () {
|
||||
|
||||
quote = null;
|
||||
delete window.quote;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -259,6 +259,7 @@ var twitter = (function(twitter_plugin) {
|
|||
twitter_plugin.destroy = function () {
|
||||
|
||||
twitter = null;
|
||||
delete window.twitter;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue