mirror of
https://github.com/discourse/discourse.git
synced 2025-02-18 01:05:00 +00:00
slight optimisation
This commit is contained in:
parent
e541c2ae2c
commit
7ec0288c85
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user