mirror of
https://github.com/discourse/discourse.git
synced 2025-04-28 17:54:33 +08:00
slight optimisation
This commit is contained in:
parent
e541c2ae2c
commit
7ec0288c85
@ -19,7 +19,7 @@ Discourse.Presence = Em.Mixin.create({
|
|||||||
*/
|
*/
|
||||||
blank: function(name) {
|
blank: function(name) {
|
||||||
var prop;
|
var prop;
|
||||||
prop = this.get(name);
|
prop = this[name] || this.get(name);
|
||||||
if (!prop) return true;
|
if (!prop) return true;
|
||||||
|
|
||||||
switch (typeof prop) {
|
switch (typeof prop) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user