From e8924b99947af62ddbbd5be52b58d0414e1b28cb Mon Sep 17 00:00:00 2001 From: Frank Wang Date: Fri, 3 Feb 2017 16:13:33 +0900 Subject: [PATCH] Add prepend (default: true) option --- dist/notify.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/notify.js b/dist/notify.js index fb9df63..4acf7e7 100644 --- a/dist/notify.js +++ b/dist/notify.js @@ -187,6 +187,7 @@ }; var pluginOptions = { + prepend: true, clickToHide: true, autoHide: true, autoHideDelay: 5000, @@ -360,7 +361,7 @@ anchor.css(css).addClass(pluginClassName + "-corner"); $("body").append(anchor); } - return anchor.prepend(this.wrapper); + return anchor[this.options.prepend ? "prepend" : "append"](this.wrapper); }; Notification.prototype.setElementPosition = function() {