diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-27 23:54:45 +0200 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-05-27 23:54:45 +0200 |
commit | 6f1fc97c9c097249e316f85a914aa439b4273448 (patch) | |
tree | 6f952674b84f759b1414475c3e2503df2a020fdb /web/js/nms-oplog.js | |
parent | 00317ae0fd34acd2244d1ef26ef37b1f55486f59 (diff) |
front: More performance tweaks and testTree()
testTree() will make it easier to avoid try-catch'ing because instead of
if (nmsData == undefined || nmsData.snmp == undefined || nmsData.snmp.snmp
== undefined || nmsData.snmp.snmp[sw] == undefined ||
nmsData.snmp.snmp[sw].misc ...)
you can do
if (!testRoot(nmsData,['snmp','snmp',sw,'misc')) { ...
Which is at least slightly less annoying.
Diffstat (limited to 'web/js/nms-oplog.js')
0 files changed, 0 insertions, 0 deletions