vendor/assets/javascripts/uikit/addons/notify.js in uikit-sass-rails-1.0.0 vs vendor/assets/javascripts/uikit/addons/notify.js in uikit-sass-rails-1.1.0
- old
+ new
@@ -1,6 +1,6 @@
-/*! UIkit 2.8.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
+/*! UIkit 2.9.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
(function(addon) {
var component;
@@ -118,10 +118,12 @@
if(!containers[$this.options.pos].children().length) {
containers[$this.options.pos].hide();
}
+ $this.options.onClose.apply($this, []);
+
delete messages[$this.uuid];
};
if(this.timeout) clearTimeout(this.timeout);
@@ -164,10 +166,11 @@
Message.defaults = {
message: "",
status: "",
timeout: 5000,
group: null,
- pos: 'top-center'
+ pos: 'top-center',
+ onClose: function() {}
};
UI.notify = notify;
UI.notify.message = Message;
UI.notify.closeAll = closeAll;
\ No newline at end of file