Change to using _.has

This commit is contained in:
Praneeth Bodduluri 2015-09-24 19:30:12 +05:30 committed by Pablo Carranza Vélez
parent c62db0867e
commit 38df4651cb

View File

@ -372,7 +372,7 @@ application.update = update = (force) ->
_.map remoteAppIds, (appId) ->
if remoteAppEnvs[appId][key]? && specialActionCallback?
# This makes the Special Action Envs only trigger their functions once.
if executedSpecialActionEnvVars[key]?
if _.has(executedSpecialActionEnvVars, key)
if executedSpecialActionEnvVars[key] != remoteAppEnvs[appId][key]
specialActionCallback(remoteAppEnvs[appId][key])
else