From dd5adda0bd5928aae90242a505a689c57b73060b Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 8 Jun 2016 07:21:22 -0400 Subject: [PATCH] Introducing 'removeStyle' method --- dist/notify.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dist/notify.js b/dist/notify.js index aed93e6..4525a0b 100644 --- a/dist/notify.js +++ b/dist/notify.js @@ -91,6 +91,15 @@ return styles[name]; }; + var removeStyle = function(name) { + if (!name) { + throw "Missing Style name"; + } + if (styles[name]) { + delete styles[name]; + } + }; + var addStyle = function(name, def) { if (!name) { throw "Missing Style name"; @@ -551,6 +560,7 @@ $.extend($[pluginName], { defaults: defaults, addStyle: addStyle, + removeStyle: removeStyle, pluginOptions: pluginOptions, getStyle: getStyle, insertCSS: insertCSS