{"comment":{"user":{"id":384203,"login":"snommensen","url":"https://api.github.com/users/snommensen","avatar_url":"https://secure.gravatar.com/avatar/ce16b63a2a8a86267ec8d40da51e1c33?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ce16b63a2a8a86267ec8d40da51e1c33"},"created_at":"2011-12-20T11:50:47Z","path":"js/ais-formatter.js","updated_at":"2011-12-20T11:50:47Z","id":809110,"position":60,"html_url":"https://github.com/itm/Tor-zur-Ostsee/commit/298f6854f5#commitcomment-809110","body":"Entsprechend der Anmerkungen von oben könnte man das dann natürlich auch anders schreiben (wenn man will):\n\n    function translateStatus(ais_description) {\n        var result = translations[ais_description];\n        return result ? result : \"UNKNOWN\";\n    }\n\nOder:\n\n    function translateStatus(ais_description) {\n        return translations.hasOwnProperty(ais_description) ? translations.ais_description : \"UNKNOWN\";\n    }\n\n(Siehe http://stackoverflow.com/questions/135448/how-do-i-check-to-see-if-an-object-has-an-attribute-in-javascript)","url":"https://api.github.com/repos/itm/Tor-zur-Ostsee/comments/809110","line":44,"commit_id":"298f6854f55063d054a049865c7e62ef8001bd9f"}}