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