( res, hash, key, altKey, preserve )
| 3201 | } |
| 3202 | |
| 3203 | function checkProp ( |
| 3204 | res, |
| 3205 | hash, |
| 3206 | key, |
| 3207 | altKey, |
| 3208 | preserve |
| 3209 | ) { |
| 3210 | if (hash) { |
| 3211 | if (hasOwn(hash, key)) { |
| 3212 | res[key] = hash[key]; |
| 3213 | if (!preserve) { |
| 3214 | delete hash[key]; |
| 3215 | } |
| 3216 | return true |
| 3217 | } else if (hasOwn(hash, altKey)) { |
| 3218 | res[key] = hash[altKey]; |
| 3219 | if (!preserve) { |
| 3220 | delete hash[altKey]; |
| 3221 | } |
| 3222 | return true |
| 3223 | } |
| 3224 | } |
| 3225 | return false |
| 3226 | } |
| 3227 | |
| 3228 | function mergeHooks (data) { |
| 3229 | if (!data.hook) { |
no test coverage detected