From 7ec0288c8586961dfc8854c1ae27b4311c421d71 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 19 Mar 2013 18:12:05 -0700 Subject: [PATCH] slight optimisation --- app/assets/javascripts/discourse/mixins/presence.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/mixins/presence.js b/app/assets/javascripts/discourse/mixins/presence.js index 9edeb439b0f..80cecc0ad14 100644 --- a/app/assets/javascripts/discourse/mixins/presence.js +++ b/app/assets/javascripts/discourse/mixins/presence.js @@ -19,7 +19,7 @@ Discourse.Presence = Em.Mixin.create({ */ blank: function(name) { var prop; - prop = this.get(name); + prop = this[name] || this.get(name); if (!prop) return true; switch (typeof prop) {