(target, source, propNames)
| 122 | } |
| 123 | |
| 124 | function __extend(target, source, propNames) { |
| 125 | if (!source) return target; |
| 126 | if (propNames) { |
| 127 | propNames.forEach(function (propName) { |
| 128 | target[propName] = source[propName]; |
| 129 | }); |
| 130 | } else { |
| 131 | for (var propName in source) { |
| 132 | if (__hasOwnProperty(source, propName)) { |
| 133 | target[propName] = source[propName]; |
| 134 | } |
| 135 | } |
| 136 | } |
| 137 | return target; |
| 138 | } |
| 139 | |
| 140 | |
| 141 | function __updateWithDefaults(target, defaults) { |
no outgoing calls
no test coverage detected