From c9117554c0f8a346c6818052fc9f12901f699fbe Mon Sep 17 00:00:00 2001 From: Daniell Mesquita Date: Thu, 7 Apr 2016 18:40:20 -0300 Subject: [PATCH 1/3] fixed #58 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 520f3de..6d19e84 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ Notify.js > A simple, yet fully customizable notification library + npm install notifyjs-browser + See demos and full documentation at: ## https://notifyjs.com/ From 0b6a2cfbf7c2be728e7322de46ad785f91000a73 Mon Sep 17 00:00:00 2001 From: Bobby Travis Date: Fri, 2 Sep 2016 22:20:55 -0400 Subject: [PATCH 2/3] return new Notification upon creation to enable triggering close on instance. Example: var loading = $.notify("Perfoming Update", { clickToHide: true }); $(element).on("update_finished",function() { loading.trigger("notify-hide"); }); --- dist/notify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/notify.js b/dist/notify.js index 3971640..10e459a 100644 --- a/dist/notify.js +++ b/dist/notify.js @@ -534,16 +534,16 @@ this.wrapper.data(pluginClassName, null); this.wrapper.remove(); }; - + $[pluginName] = function(elem, data, options) { if ((elem && elem.nodeName) || elem.jquery) { $(elem)[pluginName](data, options); + return elem; } else { options = data; data = elem; - new Notification(null, data, options); + return new Notification(null, data, options); } - return elem; }; $.fn[pluginName] = function(data, options) { From a133a2123c28d4197879a770d2563062ae540ecd Mon Sep 17 00:00:00 2001 From: Adam Eivy Date: Tue, 13 Sep 2016 20:38:44 -0700 Subject: [PATCH 3/3] adding repo location to package so it will be linked in NPM --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 9fd3421..372f464 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,10 @@ "email": "me@evancarroll.com" } ], + "repository": { + "type": "git", + "url": "https://github.com/WS-js/notifyjs.git" + }, "homepage": "http://notifyjs.com/", "license": "MIT", "main": "dist/notify.js",