mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
No need to check for property existence.
This commit is contained in:
@@ -17,11 +17,7 @@ define [
|
||||
|
||||
_eventInCache = (key) ->
|
||||
curCache = _getEventCache()
|
||||
|
||||
if (curCache.hasOwnProperty key)
|
||||
curCache[key]
|
||||
else
|
||||
false
|
||||
curCache[key] || false
|
||||
|
||||
_addEventToCache = (key) ->
|
||||
curCache = _getEventCache()
|
||||
|
||||
Reference in New Issue
Block a user