In presets, ignore config parameters that don't exist in the device

This commit is contained in:
Zaid Abdulla committed 2013-01-15 16:34:18 +03:00
1 parent 77d1c86b86
commit cd67e50062
2 files changed
+10 -6

No files matched your search

+6 -3
View File
@@ -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) ->