No need to check for property existence.

This commit is contained in:
Paulo Reis
2016-07-27 17:08:15 +01:00
parent 4c2f69692e
commit 3825111713
+1 -5
View File
@@ -17,11 +17,7 @@ define [
_eventInCache = (key) ->
curCache = _getEventCache()
if (curCache.hasOwnProperty key)
curCache[key]
else
false
curCache[key] || false
_addEventToCache = (key) ->
curCache = _getEventCache()