Delete plugins properties from window obj

This commit is contained in:
George Berezhnoy 2017-02-11 18:27:40 +03:00
parent f9bd88743d
commit 6c91f81229
11 changed files with 13 additions and 2 deletions

View file

@ -56,6 +56,7 @@ var code = (function(code_plugin) {
code_plugin.destroy = function () {
code = null;
delete window.code;
};

View file

@ -206,6 +206,7 @@ var embed = function(embed_plugin){
embed_plugin.destroy = function () {
embed = null;
delete window.embed;
};

View file

@ -160,8 +160,9 @@ var header = (function(header_plugin) {
header_plugin.destroy = function () {
header = null;
delete window.header;
}
};
return header_plugin;

View file

@ -693,6 +693,7 @@ var image = (function(image_plugin) {
image_plugin.destroy = function () {
image = null;
delete window.image;
};

View file

@ -144,6 +144,7 @@ var instagram = (function(instagram_plugin) {
instagram_plugin.destroy = function () {
instagram = null;
delete window.instagram;
};

View file

@ -342,6 +342,7 @@ var link = (function(link_plugin) {
link_plugin.destroy = function () {
link = null;
delete window.link;
};

View file

@ -220,7 +220,8 @@ var list = (function(list_plugin) {
list_plugin.destroy = function () {
list = null;
list = null
delete window.list;
};

View file

@ -103,6 +103,7 @@ var paragraph = (function(paragraph_plugin) {
paragraph_plugin.destroy = function () {
paragraph = null;
delete window.paragraph;
};

View file

@ -78,6 +78,7 @@ var paste = function(paste_plugin) {
paste_plugin.destroy = function () {
paste = null;
delete window.paste;
};

View file

@ -563,6 +563,7 @@ var quote = (function(quote_plugin) {
quote_plugin.destroy = function () {
quote = null;
delete window.quote;
};

View file

@ -259,6 +259,7 @@ var twitter = (function(twitter_plugin) {
twitter_plugin.destroy = function () {
twitter = null;
delete window.twitter;
};