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/ 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) { diff --git a/package.json b/package.json index 7152b76..416eee1 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",