In presets, ignore config parameters that don't exist in the device
This commit is contained in:
1 parent
77d1c86b86
commit
cd67e50062
2 files changed
+10
-6
No files matched your search
+6
-3
@@ -38,9 +38,12 @@ exports.extend = (obj, mixin) ->
|
||||
exports.getParamValueFromPath = (obj, path) ->
|
||||
pp = path.split('.')
|
||||
ref = obj
|
||||
for p in pp
|
||||
ref = ref[p]
|
||||
return ref
|
||||
try
|
||||
for p in pp
|
||||
ref = ref[p]
|
||||
return ref
|
||||
catch err
|
||||
return undefined
|
||||
|
||||
|
||||
exports.matchType = (src, dst) ->
|
||||
|
||||
Reference in new issue
Block a user