From: Darren Date: Sun, 19 May 2013 18:08:44 +0000 (+0100) Subject: view.StatusMessage slideUp/Down callback using correct contexts X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=23ea47193c7b0249d29cbd7275304abdb3fe3c55;p=KiwiIRC.git view.StatusMessage slideUp/Down callback using correct contexts --- diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 03a6b3b..2fde7e6 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -1222,8 +1222,8 @@ _kiwi.view.StatusMessage = Backbone.View.extend({ opt.type = opt.type || ''; opt.timeout = opt.timeout || 5000; - this.$el.text(text).attr('class', opt.type); - this.$el.slideDown($.proxy(_kiwi.app.view.doLayout, this)); + this.$el.text(text).addClass(opt.type); + this.$el.slideDown($.proxy(_kiwi.app.view.doLayout, _kiwi.app.view)); if (opt.timeout) this.doTimeout(opt.timeout); }, @@ -1234,14 +1234,14 @@ _kiwi.view.StatusMessage = Backbone.View.extend({ opt.type = opt.type || ''; opt.timeout = opt.timeout || 5000; - this.$el.html(text).attr('class', opt.type); - this.$el.slideDown(_kiwi.app.view.doLayout); + this.$el.html(text).addClass(opt.type); + this.$el.slideDown($.proxy(_kiwi.app.view.doLayout, _kiwi.app.view)); if (opt.timeout) this.doTimeout(opt.timeout); }, hide: function () { - this.$el.slideUp($.proxy(_kiwi.app.view.doLayout, this)); + this.$el.slideUp($.proxy(_kiwi.app.view.doLayout, _kiwi.app.view)); }, doTimeout: function (length) {