diff options
Diffstat (limited to 'web/js/nms-map-handlers.js')
-rw-r--r-- | web/js/nms-map-handlers.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/web/js/nms-map-handlers.js b/web/js/nms-map-handlers.js index 21f2bb2..9a06b42 100644 --- a/web/js/nms-map-handlers.js +++ b/web/js/nms-map-handlers.js @@ -596,14 +596,14 @@ function comboInfo(sw) { var worst = new handlerInfo("combo", "Combo"); worst.score = -1; for (var h in handlers) { - try { - if (handlers[h].tag== "combo") - continue; - var ret = handlers[h].getInfo(sw); - if (ret.score > worst.score) { - worst = ret; - } - } catch(e) { } + if (handlers[h].tag== "combo") + continue; + if (handlers[h].getInfo == undefined) + continue; + var ret = handlers[h].getInfo(sw); + if (ret.score > worst.score) { + worst = ret; + } } worst.data = [{ description: "Worst: " + worst.description, |