mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-27 19:11:06 +00:00
No need to check for property existence.
This commit is contained in:
parent
4c2f69692e
commit
3825111713
1 changed files with 1 additions and 5 deletions
|
@ -17,11 +17,7 @@ define [
|
|||
|
||||
_eventInCache = (key) ->
|
||||
curCache = _getEventCache()
|
||||
|
||||
if (curCache.hasOwnProperty key)
|
||||
curCache[key]
|
||||
else
|
||||
false
|
||||
curCache[key] || false
|
||||
|
||||
_addEventToCache = (key) ->
|
||||
curCache = _getEventCache()
|
||||
|
|
Loading…
Reference in a new issue