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() {