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