Repository navigation
Conversation
|
Can one of the admins verify this patch? |
|
👍 |
|
@tanghus +1. But given that a has been not defined: typeof undefined evaluates to 'undefined' since it's just an uninitialized variable in this context ;) |
|
JS is fun, typeof NaN === "number" :-P |
|
@tanghus actually I agreed with you :) But from the other hand it's not possible to use strict comparison "at least" in this case. You see, the examples above show completely different results PS NaN is a number that is not equal to itself or any other number by specification. |
Of course, or I'll revoke your push privileges ;) Just proves to show that standardization committees have far too much time on their hands ;) Sorry, couldn't helpt it, but seriously typeof returns a comparable string value, so it should be appropriate to use strict comparison, but you're right that it should be either that or might as well be if(UserList.deleteUid) - or do I misunderstand you? |
|
@tanghus I meant that quotes are more important than check for type equality in this particular case. Any of As soon as UserList is object PS trick = 42; typeof trick.doTheTrick |
|
I've created a new PR with the correct commit :) i close this one |
When you delete a user,
as in file, oc put you an undo message. (nice btw)
and it do the task only when we leave the page.
so , when you delete 2+ users in row, oc will only delete the last one.
my patch empty the queue when we want to delete another user.
so there is always 1 user top in the delete queue as it was meant to be.
We may want to apply this in master as well.